网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 服务器与数据库 > MySQL
User Name
Password
 
FAQ Members List Calendar Cheap Glasses Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1   IP: 114.238.4.103
Old 2014-12-02, 07:38 PM
Gaithersburg Gaithersburg is offline
初级会员
 
Join Date: 2012-03-24
Posts: 1
Gaithersburg 现在声名狼藉
Default 访问mysql数据库命令行xampp

如何访问MySQL命令行XAMPP

MySQL二进制文件应该在你的XAMPP文件夹中。通过寻找一个/bin文件夹,你就可以发现mysql.exe客户端。让我们假设它是在e:\ XAMPP \ MYSQL \ BIN中,那么你应该在这个文件中寻找命令提示符。

首先,进入到e:\ XAMPP,运行xampp_start。如果你不运行xampp_start,当你进行第二步的时候,系统将会显示错误消息“无法连接到MySQL服务器'localhost'。

在你运行DOS指示符之后,请输入:

cd d:\xampp\mysql\bin

mysql.exe -u root –p

然后输入密码:

输入根密码:

mysql>

登录到你的mysql服务器,并开始输入你的命令。类型“quit”Â或“exit”退出MYSQL

如果您忘记mysql的根密码,您可以更改根密码,如下所示:

1。停止运行mysql;

2。创造一个txt文件,命名为“newrootpassword.txt”,然后输入内容:

SET PASSWORD FOR ‘root’@'localhost’ = PASSWORD(‘MyNewPassword’);

保存文件F:

3。运行DOS commnad的PROMPTA行:

C:\> F:\mysql\bin\mysqld-nt –init-file=F:\newrootpassword.txt

4。运行MySQL,并停止。你的新myslq root密码将被确定。
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 06:16 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.