• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

windows noinstall装配配置mysql5.5

mysql 搞代码 4年前 (2022-01-09) 22次浏览 已收录 0个评论

windows noinstall安装配置mysql5.5 1.首先获取mysql5.5,下载社区版,免费。 ? mysql5.5的现在地址?http://dev.mysql.com/downloads/mysql/5.5.html#downloads ??mysql5.5_noinstall_32位的下载地址:http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.34

windows noinstall安装配置mysql5.5

1.首先获取mys本文来源gaodai#ma#com搞*!代#%^码网%ql5.5,下载社区版,免费。

? mysql5.5的现在地址?http://dev.mysql.com/downloads/mysql/5.5.html#downloads

??mysql5.5_noinstall_32位的下载地址:http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.34-win32.zip

? ?mysql5.5_noinstall_64位的下载地址:http://cdn.mysql.com/Downloads/MySQL-5.5/mysql-5.5.34-winx64.zip

?

2.开始安装

? 把mysql-5.5.34-winx64.zip解压缩到C盘,并把mysql-5.5.34-winx64重命名mysql,复制my-medium.ini为my.ini,修改my.ini,在[mysqld]下面增加:??

basedir=C:/mysqldatadir=C:/mysql/data

?

?

? 把mysql加入环境变量,这一步可以不做,只是为了以后在任意路径下都可以登陆mysql。

??新增加环境变量:

MYSQL_HOME=C:\mysql

?修改PATH环境变量,在最前面增加,注意最后面的英文字符”;”:

%MYSQL_HOME%\bin;

?3.安装服务

C:\mysql\bin>mysqld --install mysql --defaults-file="c:\mysql\my.ini"Service successfully installed.

? ?如果需要删除mysql服务,命令如下:

C:\mysql\bin>mysqld -remove mysqlService successfully removed.

?4.启动与停止

? 可以直接开始-》运行-》输入如下命令回车:

?

net start mysql

? 同样停止mysql服务,开始-》运行-》输入如下命令回车:

?

net stop mysql

?5.初始化数据库

? C:\>mysql -uroot -p 回车,要求输入密码,直接回车继续。

?

C:\>mysql -uroot -pEnter password:Welcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 4Server version: 5.5.34-log MySQL Community Server (GPL)Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>

?

更改root的密码为root:

?

mysql> use mysql;#使用mysql这个数据库Database changedmysql> update user set password=password("root") where user="root";#更改root账号的密码为rootQuery OK, 3 rows affected (0.00 sec)Rows matched: 3  Changed: 3  Warnings: 0mysql> flush privileges;#刷新权限Query OK, 0 rows affected (0.00 sec)

? 退出并重新测试新密码:

?

mysql> exit #退出mysqlBye

? 重新登陆:

?

C:\>mysql -uroot -pEnter password: **** #输入新密码rootWelcome to the MySQL monitor.  Commands end with ; or \g.Your MySQL connection id is 9Server version: 5.5.34-log MySQL Community Server (GPL)Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>

? 登陆成功。

?

?

6.乱码问题


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:windows noinstall装配配置mysql5.5

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址