MySQL衍生版 MySQL/Galera 0.7.1 发布
Galera 是一套在 MySQL InnoDB 上面实现 Multi-master 且 synchronous replication 的系統。
该版本修复了9个bug,主要是处理 DDL 和 DML 的并发问题,另外基准MySQL版本升级到 5.1.41 。
下载地址: http://www.codership.com/en/downloads/galera
相关文档:
连接MySQL数据库时常会出现如下的错误提示:
#1251 - Client does not support authentication protocol requested by server; consider upgrading MySQL client
出现这种问题是在MySQL4.1以上版本,原因MySQL服务器版本使用了新的密码验证机制,其解决方法如下:
mysql>;set password for '用户名' @ '主机名' = old ......
1.安装MySQL(略)
2.启动多个MySQL服务器
要实现在单机上启动多个MySQL服务器,有两种方法,一种是直接使用mysqld_safe来运行多个服务器
当然这样分别编辑配置文件,而且关闭服务器的时候也要读取配置文件,所以比较麻烦,另一种方法是使用
MySQL提供到工具mysqld_multi脚本来管理多个服务器,下面 ......
(1)登陆到mysql
C:\Documents and Settings\Administrator>mysql -h localhost -u root -p
Enter password: *****
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 69
Server version: 5.0.51a-community-nt MySQL Community Edition (GPL)
Type 'help;' or '\h' fo ......
PHP中的MYSQL常用函数总结
1、mysql_connect()-建立数据库连接
格式:
resource mysql_connect([string hostname [:port] [:/path/to/socket] [, string username] [, string password]])
例:
$conn = @mysql_connect("localhost", "username", "password") or dir( ......