mysql5.7单实例命令行安装(windows环境下)
一.下载安装包
二.解压缩至安装目录
D:\install_path
三.添加path环境变量
path=xxx;D:\install_path\bin
四.建立参数文件
D:\install_path\bin\my.ini
五.安装
mysqld -install mysql --defaults-file=D:\mysql\bin\my.ini(参数文件路径)
删除命令:sc delete mysql
六.初始化mysql
mysqld --initialize-insecure
七.启动服务
D:\mysql\bin>net start mysql
The mysql service is starting.
The mysql service was started successfully.
八.登录并设定密码
mysql -uroot
mysql> set password=password('root');
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
本文标题:mysql5.7单实例命令行安装(windows环境下)
URL地址:http://pwwzsj.com/article/pjjjcs.html
二.解压缩至安装目录
D:\install_path
三.添加path环境变量
path=xxx;D:\install_path\bin
四.建立参数文件
D:\install_path\bin\my.ini
点击(此处)折叠或打开
10年积累的成都网站设计、网站制作经验,可以快速应对客户对网站的新想法和需求。提供各种问题对应的解决方案。让选择我们的客户得到更好、更有力的网络服务。我虽然不认识你,你也不认识我。但先网站策划后付款的网站建设流程,更有隆阳免费网站建设让你可以放心的选择与我们合作。
- [client]
- port=3306
- [MySQLd]
- port=3306
- basedir=D:\\mysql
- datadir=D:\\mysql\\data
- character-set-server=utf8
- max_connections=200
- default-storage-engine=INNODB
- [mysql]
- default-character-set=utf8
五.安装
mysqld -install mysql --defaults-file=D:\mysql\bin\my.ini(参数文件路径)
删除命令:sc delete mysql
六.初始化mysql
mysqld --initialize-insecure
七.启动服务
D:\mysql\bin>net start mysql
The mysql service is starting.
The mysql service was started successfully.
八.登录并设定密码
mysql -uroot
mysql> set password=password('root');
Query OK, 0 rows affected, 1 warning (0.00 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
本文标题:mysql5.7单实例命令行安装(windows环境下)
URL地址:http://pwwzsj.com/article/pjjjcs.html