分类: mysql
mysql 基础命令(一)
创建数据库
Shell
create database db;
1
create database db;
创建用户
……
mysql 编码问题
mysql的默认编码是latin1,不支持中文。怎么修改mysql的默认编码?本文以utf-8默认编码修改为例来介绍。
创建数据库并指定编码方式:
Shell
……
mysql 双机热备
环境说明
1.MySQL主服务器
系统:CentOS 6.5
IP:192.168.178.3
主机名:oracle.com
MySQL版本:14.14
2.MySQL从服务器
系统:CentOS 6.5
IP:192.168.178.5
主……
Mysql update 单张表单模糊匹配出的字段名
Shell
<a style="color: #0000ff;" href="http://search.microsoft.com/default.asp?so=RECCNT&siteid=us%2Fdev&p=1&……
mysql 忘记root密码
1.首先确认服务器出于安全的状态,也就是没有人能够任意地连接MySQL数据库。
因为在重新设置MySQL的root密码的期间,MySQL数据库完全出于没有密码保护的
状态……
Client does not support authentication protocol requested by server; consider upgrading MySQL client
问题:
/!\ FAILSAFE /!\ Sun Mar 23 02:56:01 +0800 2014
Status: 500 Internal Server Error
Client does not support authentication protocol requested ……
mysql并发连接量设置
Shell
<strong>vi /etc/my.cnf</strong>
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=……
Another MySQL daemon already running with the same unix socket.
今天新安装一个LAMP环境,启动mysql时 出现以下问题:
Shell
[root@pu ~]# service mysqld start
Another MySQL daemon already……
mysql数据库备份还原
mysqldump –uroot –p 数据库名 > 路径 备份
mysql –uroot –p 数据库名< 路径 还原
2013年11月21日, PM 02:33:34
解决mysql不能远程连接
Shell
[root@test html]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 55
Se……