Linux下mysql的安装
1.安装MySQL: yum install -y mysql-server mysql mysql-devel
2.启动服务:service mysqld start
3.重启服务测试: service mysqld restart
4.设置root密码:/usr/bin/mysqladmin -u root password 'new-password'
5.开启启动:chkconfig mysqld on
6.登录:mysql mysql -uroot -p123
7.允许远程访问(前提你已经登录到了MySQL): GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123' WITH GRANT OPTION;
#刷新权限 FLUSH PRIVILEGES;