简体   繁体   English

数据库连接不成功TYPO3

[英]Database connect not successful TYPO3

I am working for the first time on one hosting with TYPO3, and seems that I can't connect to database during initial setup (first install). 我第一次使用TYPO3进行托管,似乎在初始设置(首次安装)期间无法连接到数据库。 My username and passwords are correct , and I can access to database using other methods but i simply can't with TYPO3 install tool. 我的用户名和密码是正确的我可以使用其他方法访问数据库,但我根本无法使用TYPO3安装工具。 I tried with default hosts (eg localhost and default 127.0.0.1) and even socket based connection but nothing. 我尝试使用默认主机(例如localhost和默认127.0.0.1)甚至基于套接字的连接,但没有。

Any help please? 有什么帮助吗?

Best regrads 最好的regrads

I had a similar problem on my local development machine. 我在本地开发机器上遇到了类似的问题。 The solution for me was to comment out the skip-networking line in the MySQL server configuration file my.cnf 我的解决方案是在MySQL服务器配置文件my.cnf注释掉skip-networking线

At first localhost or 127.0.0.1 will be successful as long as the mysql server is located on the same server. 只要mysql服务器位于同一服务器上,首先localhost或127.0.0.1将成功。

Either you can create an special typo user for the server and bind it to an DB or you can use the default root user. 您可以为服务器创建特殊的拼写错误用户并将其绑定到数据库,也可以使用默认的root用户。 Any other user also migth work depending on the configuration. 任何其他用户也可以根据配置进行迁移。 Here you should check the accessrigths for the user u want TYPO to log in as. 在这里你应该检查你想要TYPO登录的用户的accessrigths。

For the password section you have to check if the user needs a password. 对于密码部分,您必须检查用户是否需要密码。 If not just omit it. 如果不是省略它。

Also try to select an empty but existing database 还尝试选择一个空的但现有的数据库

The connection type is not really relevant cause most of the problems are caused by wrong host,user, password, database settings. 连接类型并不真正相关,因为大多数问题都是由错误的主机,用户,密码,数据库设置引起的。

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

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