ubuntu12.04 安装mysql_MySQL
在Ubuntu12.04 之前的版本中配置MySQL数据库非常方便,只需要运行3条命令即可:
sudo apt-get install mysql-server
sudo apt-get install mysql-admin
sudo apt-get install mysql-query-browser
现在ubuntu12.04 只要执行两条命令即可:
sudo apt-get install mysql-server
sudo apt-get install mysql-workbench
设置UFT8
sudo gedit /etc/mysql/my.cnf
在[mysqd]下面加入
character-set-server=utf8
保存,重启mysql
show variables like 'character%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
创建用户、权限:
create user ejbca IDENTIFIED BY 'ejbca';
GRANT ALL PRIVILEGES ON *.* TO ejbca@localhost;
推荐阅读
-
Premiere CC 2019图文安装和注册补丁的使用方法
-
T20天正建筑5.0最新版无限使用一键破解安装教程(附补丁下载)
-
google浏览器安装插件的图文方法介绍
-
ACDSee Ultimate/Pro 2019专业版/旗舰版安装激活破解教程(附注册码)
-
Alien Skin Exposure X4+Bundle注册破解详细安装教程(附破解下载)
-
森林插件Itoo Forest Pack Pro for 3ds Max2019破解版详细安装教程(附下载)
-
Alien Skin Exposure x3 汉化破解版详细安装图文步骤
-
Python的Flask框架的简介和安装方法
-
Python下的常用下载安装工具pip的安装方法
-
Vmware 7.1.x安装时出现的"already installed"错误解决方法