简体   繁体   English

无法在本地主机上安装Joomla

[英]Unable to install Joomla on localhost

I installed xampp server on my system with port number 90 because I have another server running on my system. 我在系统上以端口号90安装了xampp服务器,因为我的系统上正在运行另一台服务器。 Also, MySQL uses port 3308. The xampp server is running well, Apache runs correctly, MySQL runs correctly and the PHPMyAdmin also runs correctly. 另外,MySQL使用端口3308。xampp服务器运行良好,Apache正常运行,MySQL正确运行,PHPMyAdmin也正确运行。

But when I was trying to install Joomla 3.6, I received an error message "The installer was not able to connect to the MySQL server. Please make sure MySQL is running". 但是,当我尝试安装Joomla 3.6时,收到一条错误消息“安装程序无法连接到MySQL服务器。请确保MySQL正在运行”。

Note: I did not create password for MySQL. 注意:我没有为MySQL创建密码。

What else am I suppose to do to get Joomla installed and running correctly? 我应该怎么做才能正确安装并运行Joomla?

You need to configurate the correct port for your MySQLi database connection. 您需要为MySQLi数据库连接配置正确的端口。 Maybe your joomla setup use the 3306 port for the mysql. 也许您的joomla安装程序将3306端口用于mysql。 change this to 3308 in the configuration file inside the installation folder before you start to setup the CMS. 在开始设置CMS之前,请将其更改为安装文件夹中配置文件中的3308。

/* Database Settings */
public $dbtype = 'mysqli';               // Normally mysqli
public $host = 'localhost:3308';              // This is normally set to localhost
public $user = '';                       // DB username
public $password = '';                   // DB password
public $db = '';                         // DB database name
public $dbprefix = 'jos_';               // Do not change unless you need to!

I changed MySQL port configuration from port 3308 back to port 3306. Then I try to install Joomla again and it successfully installed. 我将MySQL端口配置从端口3308更改回端口3306。然后尝试再次安装Joomla,并成功安装了它。 To make it connect on port 3308: -Change the MySQL port configuration from 3306 back to 3308. -Locate Joomla C:\\xampp\\apps C:\\xampp\\apps\\joomla\\htdocs -Then open the configuration file with notepad -Change the port settings from 3306 to 3308 "public $host = 'localhost:3308';" 要使其在端口3308上连接:-将MySQL端口配置从3306更改回3308。-找到Joomla C:\\ xampp \\ apps C:\\ xampp \\ apps \\ joomla \\ htdocs-然后使用记事本打开配置文件-更改端口设置从3306到3308“ public $ host ='localhost:3308';” That is how I solved the problem. 这就是我解决问题的方式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM