windows安装mysql

ゞ 浴缸里的玫瑰 2023-07-06 08:58 75阅读 0赞

mysql -u root -p123456
use mysql;
update user set authentication_string=password(“123456”) where user=”root”;
flush privileges;
exit;

允许root远程登录
mysql -u root -p123456
use mysql;
select host,user from user where user=’root’;
grant all privileges on *.* to ‘root’@’%’ identified by ‘123456’ with grant option;
flush privileges;
exit;

cd C:\Program Files\MySQL\MySQL Server 5.7\bin

select host,user from user where user=’root’;

配置文件的位置
C:\ProgramData\MySQL\MySQL Server 5.7\my.ini
max_connections=500
innodb_buffer_pool_size=200M

日志的位置
C:\ProgramData\MySQL\MySQL Server 5.7\Data

workbench的使用
关于操作数据库的一些操作

命令行操作数据库
show databases;
use itpuxdb;
show tables;
select * from new_table;

发表评论

表情:
评论列表 (有 0 条评论,75人围观)

还没有评论,来说两句吧...

相关阅读