随笔分类 - Mysql
摘要:mysql 忘记密码: 1、首先service mysql stop mysqld --skip-grant-tables & 开启数据库 然后就可以mysql -uroot 直接进数据库, update mysql.user set Password=PASSWORD('xxxxxxx') whe
阅读全文
摘要:mysql> use mydb Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A 访问数据
阅读全文
摘要:卸载:apt-get autoremove --purge mysql-server-5.1 卸载服务端 apt-get remove mysql-common #一定要卸载(包含配置文件) dpkg -P mysql-common 清除残留 apt-get remove mysql-server-
阅读全文
摘要:修改/etc/mysql/my.cnf 配置文件: 最后重启mysql 服务,再查看: 编码已经改好了,可以支持中文字符编码了。
阅读全文