一、当前目录下查找文件或文件夹
find -name 'mysql'
二、登录mysql:
sudo su
mysql -uroot -p
四、删除数据库drop database cen;
五、创建数据库create database bpm_cfm;
六、数据库授权grant all privileges on bpm_cfm.* to bpmcfm@'%' identified by 'bpmcfm';
七、修改mysql默认字符集的方法,就是使用mysql的命令 mysql> SET character_set_client = utf8 ;
mysql> SET character_set_connection = utf8 ;
mysql> SET character_set_database = utf8 ;
mysql> SET character_set_results = utf8 ;
mysql> SET character_set_server = utf8 ;
mysql> SET collation_connection = utf8 ;
mysql> SET collation_database = utf8 ;
mysql> SET collation_server = utf8 ;
八、查看mysql版本
find -name 'mysql'
二、登录mysql:
sudo su
mysql -uroot -p
Enter password: (输入密码)
三、显示数据库
show databases;四、删除数据库drop database cen;
五、创建数据库create database bpm_cfm;
六、数据库授权grant all privileges on bpm_cfm.* to bpmcfm@'%' identified by 'bpmcfm';
七、修改mysql默认字符集的方法,就是使用mysql的命令 mysql> SET character_set_client = utf8 ;
mysql> SET character_set_connection = utf8 ;
mysql> SET character_set_database = utf8 ;
mysql> SET character_set_results = utf8 ;
mysql> SET character_set_server = utf8 ;
mysql> SET collation_connection = utf8 ;
mysql> SET collation_database = utf8 ;
mysql> SET collation_server = utf8 ;
八、查看mysql版本
select version();
九、查看mysql信息
status;