【发布时间】:2015-02-11 10:01:04
【问题描述】:
我对配置 MySQL 有点陌生。我的问题是我们需要在已经将 MySQL 作为服务安装的计算机上运行 MySQL。我们没有root权限。由于 MySQL 服务对于在计算机上运行的应用程序很重要,因此我们不能只删除/重新安装它。也许该应用程序将被再次使用。所以我尝试安装 xampp 并尝试将 MySQL 不作为服务启动,但这似乎是不可能的。
是否可以不作为服务启动 MySQL?每当我启动 XAMPP 控制面板时,都会出现以下内容:
[mysql] MySQL Service detected with wrong path
[mysql] Change XAMPP MySQL and Control Panel settings or
[mysql] Uninstall/disable the other service manually first
[mysql] Found Path: "C:\private\private\bin\mysqld-nt" --defaults-file="C:\private\private\my.ini" MySQL
[mysql] Expected Path: c:\xampp\mysql\bin\mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini mysql
所以我一直在尝试禁用服务,然后手动启动
mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini
之后进程正在运行,我在控制台中得到以下信息:
C:\xampp\mysql\bin>mysqld.exe --defaults-file=c:\xampp\mysql\bin\my.ini
2015-02-11 10:52:53 0 [Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future release. Please use the full name instead.
2015-02-11 10:52:53 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
然后我无法连接到 mysql: C:\xampp\mysql\bin>
mysql -u root
ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
顺便说一句,如果这很重要的话,我使用的是 Windows 8 64 位。
另一个问题:root 密码是否与服务中的密码相同?我的意思是 MySQL 和 MySQL 服务安装在不同的目录中。
【问题讨论】:
标签: mysql configuration