打开D:\WAMPMySQL Cluster 7.4\my.ini,修改为:
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.
[mysqld]
# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M
# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin
# These are commonly set, remove the # and set as required.
basedir = "D:/WAMP/MySQL Cluster 7.4/"
datadir = "D:/WAMP/MySQL Cluster 7.4/data"
port = 3306
# server_id = .....
# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M
转入bin目录,管理员权限:
增加服务命令:mysqld install MySQL --defaults-file="D:/WAMP/MySQL Cluster 7.4/my.ini"
移除服务命令为:mysqld remove
启动mysql命令为: net start mysql
关闭mysql命令为:net stop mysql
修改root的密码为123456
命令行执行:mysql –u root
mysql>show databases;
mysql>use mysql;
mysql> UPDATE user SET password=PASSWORD('123456') WHERE user='root';
mysql> FLUSH PRIVILEGES;
mysql> QUIT
命令行执行:mysql -u root -p
输入密码:123456
2)进行授权操作:
mysql>GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'youpassword' WITH GRANT OPTION;
重载授权表:
mysql>FLUSH PRIVILEGES;
退出mysql:quit..
三、PHP安装(php-5.6.12)
版本解释:
Thread Safe 现成安全,会进行线程 安全检查,适用于httpd。
Non Thread Safe是非线程安全,在执行时不进行线程(Thread)安全检查,适用于IIS。
选择版本:PHP5.6(5.6.12)中VC6 x86 Thread Safe下 ZIP下载