[root@stonex ~]# yum -y install @R_301_198@-server
第2步、设置开机启动
[root@stonex ~]# chkconfig @R_301_198@d on
第3步、启动@R_301_198@服务
[root@stonex ~]# service @R_301_198@d start
第4步、设置@R_301_198@的root用户设置密码
[root@stonex ~]# @R_301_198@ -u root
Welcome to the @R_301_198@ monitor. Commands end with ; or \g.
...... 省略了一些行
@R_301_198@> select user,host,password from @R_301_198@.user;
查询用户的密码,都为空,用下面的命令设置root的密码为root
@R_301_198@> set password for root@localhost=password('root');
@R_301_198@> exit
第5步、用新密码登陆
[root@stonex ~]# @R_301_198@ -u root -p
第6步、基本命令
show databases; //查看系统已存在的数据库
use databasesname; //选择需要使用的数据库
drop database databasename; //删除选定的数据库
exit //退出数据库的连接
create database test01; //建立名为test的数据库
show tables; // 列出当前数据库下的表
其他基本的增删改查使用标准sql即可
[root@stonex ~]# chkconfig @R_301_198@d on
第3步、启动@R_301_198@服务
[root@stonex ~]# service @R_301_198@d start
第4步、设置@R_301_198@的root用户设置密码
[root@stonex ~]# @R_301_198@ -u root
Welcome to the @R_301_198@ monitor. Commands end with ; or \g.
...... 省略了一些行
@R_301_198@> select user,host,password from @R_301_198@.user;
查询用户的密码,都为空,用下面的命令设置root的密码为root
@R_301_198@> set password for root@localhost=password('root');
@R_301_198@> exit
第5步、用新密码登陆
[root@stonex ~]# @R_301_198@ -u root -p
第6步、基本命令
show databases; //查看系统已存在的数据库
use databasesname; //选择需要使用的数据库
drop database databasename; //删除选定的数据库
exit //退出数据库的连接
create database test01; //建立名为test的数据库
show tables; // 列出当前数据库下的表
其他基本的增删改查使用标准sql即可
第7步、开放远程登录权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'root' WITH GRANT OPTION;
FLUSH PRIVILEGES;
退出@R_301_198@命令:
FLUSH PRIVILEGES;
quit