MySQL Community Server 5.5.56 ZIP Archive 绿色解压版 window安装步骤
首先
准备好启动配置文件my.ini
[mysqld] #设置字符集为utf8 loose-default-character-set = utf8 basedir = F:/IDE/mysql5.5 datadir = F:/IDE/mysql5.5/data [client] #设置客户端字符集 loose-default-character-set = utf8 [WinMySQLadmin] Server = F:/IDE/mysql5.5/bin/mysqld.exe
下面开始安装步骤:
1.
打开计算机->属性->高级系统设置->环境变量,新建一个环境变量,变量名为:MYSQL_HOME,变量值为你的mysql根目录,如:C:\mysql-5.5.10-win32 然后在系统变量Path中添加:;%MYSQL_HOME%\bin
2.
mysqld -install
3.
net start mysql
4.
第一次登录的时候输入:
C:\Users\Administrator>mysql -u root
修改密码:
mysql> update mysql.user set password=PASSWORD(‘root‘) where User=‘root‘;
mysql> flush privileges;
另外
官方mysql5.5下载地址:
https://dev.mysql.com/downloads/mysql/5.5.html#downloads
时间: 2024-10-05 23:58:51