Windows下MySql安装配置
清泛原创
1.下载服务器端,解压
2.安装Mysql服务:
进入bin目录,mysqld.exe --install (指定安装的MySql服务名)。
(卸载 net stop servicename;
mysqld.exe --remove servicename)
3.进入MySql命令模式:
mysql.exe(回车)
4.赋权限:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123' WITH GRANT OPTION;
(注:%用于其他主机连接,localhost用于本机连接)
2.安装Mysql服务:
进入bin目录,mysqld.exe --install (指定安装的MySql服务名)。
(卸载 net stop servicename;
mysqld.exe --remove servicename)
3.进入MySql命令模式:
mysql.exe(回车)
4.赋权限:
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY '123' WITH GRANT OPTION;
(注:%用于其他主机连接,localhost用于本机连接)
上一篇:Git基本命令
下一篇:phpMyAdmin如何修改表名