环境配置
MYSQL_HOME=D:\develop\database\mysql-5.6.20-winx64\bin
mysql.ini
1 2 3 4 5 6 7 8 9 10 11 12 13
| [mysqld] 设置字符集为utf8 loose-default-character-set = utf8 character-set-server = utf8 basedir = F:/mysql/mysql-5.6.20-winx64 datadir = F:/mysql/mysql-5.6.20-winx64/data
[client] #设置客户端字符集环境 loose-default-character-set = utf8
[WinMySQLadmin] Server = F:/mysql/mysql-5.6.20-winx64/bin/mysqld.exe
|
添加为系统服务
1 2 3
| mysqld -install mysqld -remove sc delete mysql
|
修改密码
1 2
| update mysql.user set password=PASSWORD('root') where User='root' flush privileges
|
mysql解决远程不能访问的方法
1
| GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
|