时间:2021-07-01 10:21:17 帮助过:28人阅读
yum install mysql-devel
2. 安装mysql客户端:
yum install mysql
3. 启动mysql服务:
service mysqld start或者/etc/init.d/mysqld start
停止:
service mysqld stop
重启:
service mysqld restart
4. 创建root管理员:
mysqladmin -u root password 123456
5.登陆
mysql -uroot -p123456
6.root权限
GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "123456"; flush privileges;
设置mysql的开机启动
chkconfig --add mysqld
chkconfig mysqld on
大数据学习——yum练习安装mysql
标签:rest add dmi 启动mysql 启动 mysqld 服务器端 etc service