摘要: 创建一个字符集为utf8的数据库 mysql> create database lisi DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;Query OK, 1 row affected (0.00 sec) 查看创建的数据库 mysql> sh 阅读全文
posted @ 2022-06-12 21:16 北极之光的博客 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1、修改配置文件my.cnf 按i编辑 vim /etc/my.cnf 在[mysqld]中添加 skip-grant-tables 例如: [mysqld] **skip-grant-tables** datadir=/var/lib/mysql socket=/var/lib/mysql/mys 阅读全文
posted @ 2022-06-12 20:43 北极之光的博客 阅读(3317) 评论(0) 推荐(0) 编辑