我两者都有XAMPP
and WAMP
已安装。我正在安装Pimcore
但有一个错误说"Couldn't establish connection to MYSQL: Access denied for user 'sadegh'@'localhost' (using password: YES)"
。
我阅读了安装手册,它说我必须手动创建数据库。我应该如何创建数据库?我应该把它放在哪里?
有人可以帮忙吗?这快要死了。
正如错误所说,您必须自己在 MySQL 中创建数据库。以下是在 XAMPP 中执行此操作的方法(与 WAMP 非常相似):
Open XAMPP Control Panel and click the "Shell" button
-
在 shell 窗口中,首先使用以下命令连接到数据库:
mysql -h localhost -u root
-
使用以下命令创建一个新数据库,我将其命名为“pimcore_sample”,并将其设置为使用 UTF8:
CREATE DATABASE pimcore_sample CHARACTER SET utf8 COLLATE utf8_general_ci;
If all is successful, your output should be something like this:
Now enter the information into the Pimcore setup, like this:
不建议使用 root 用户,但适用于开发。确保创建另一个用户以供生产使用(请参阅http://dev.mysql.com/doc/refman/5.1/en/user-account-management.html http://dev.mysql.com/doc/refman/5.1/en/user-account-management.html).
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)