且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows 8上使用Wamp或Xampp安装pimcore?

更新时间:2023-02-22 19:48:59

正如错误所说,您必须自己在MySQL中创建数据库.这是在XAMPP(WAMP的非常相似)中的操作方法:

As the error say, you have to create the database in MySQL yourself. Here is how to do it in XAMPP (very similair for WAMP):

  1. 打开XAMPP控制面板,然后单击外壳"按钮

  1. Open XAMPP Control Panel and click the "Shell" button

在外壳程序窗口中,首先使用以下命令连接到数据库:

In the shell window, first connect to the database using the following command:

mysql -h localhost -u root

使用以下命令创建一个新数据库,我将其命名为"pimcore_sample",并将其设置为使用UTF8:

Create a new database with the following command, I named mine "pimcore_sample", also set it to use UTF8:

CREATE DATABASE pimcore_sample CHARACTER SET utf8 COLLATE utf8_general_ci;

如果一切成功,那么您的输出应该是这样的:

If all is successful, your output should be something like this:

现在将信息输入到Pimcore设置中,如下所示:

Now enter the information into the Pimcore setup, like this:

不建议使用root用户,但是可以用于开发.确保创建另一个用于生产的用户(请参见 http ://dev.mysql.com/doc/refman/5.1/zh-CN/user-account-management.html ).

Using the root user is not recommended, but works for development. Make sure to create another user for production use (see http://dev.mysql.com/doc/refman/5.1/en/user-account-management.html).