• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Cant connect to MySQL database

Jamzitox

ImperiUs Online
Joined
May 30, 2008
Messages
245
Reaction score
0
Location
Venezuela/Margarita
Code:
	-- Database
	sqlType = "mysql"

	sqlHost = "mysq2151.hosting.net"

	sqlPort = 3306

	sqlUser = "hosting_user"

	sqlPass = "password"

	sqlDatabase = "hosting_database"

	sqlFile = "forgottenserver.s3db"

	sqlKeepAlive = 0

	mysqlReadTimeout = 10

	mysqlWriteTimeout = 10

	passwordType = "plain"

error :(
Can't connect to MySQL database.

I can not have my database on a website and hosting?
 
I'm not sure that this will work like that
Code:
sqlHost = "mysq2151.hosting.net"
Why dont you try with localhost?

And why dont you use root?
 
What a noob my god... that's why you do not edit your config.lua
sqlType = "Your SQL Type"
sqlHost = "localhost"
sqlPort = 3306
sqlUser = "root"
sqlPass = ""
sqlDatabase = "theforgottenserver"
sqlFile = "forgottenserver.s3db"
sqlKeepAlive = 0
mysqlReadTimeout = 10
passwordType = "plain"
 
I have my database in a web host that accepts phpmyadmin and mysql but out error in the web: S!

-- Database
sqlType = "mysql"

sqlHost = "mysq2151.hosting.net"

sqlPort = 3306

sqlUser = "hosting_user"

sqlPass = "password"

sqlDatabase = "hosting_database"

sqlFile = "forgottenserver.s3db"

sqlKeepAlive = 0

mysqlReadTimeout = 10

mysqlWriteTimeout = 10

passwordType = "plain"

my server is mysql not sqlite -.-"

Please Help Me :S

server and web
Can't connect to MySQL database.

images:
errorplease.jpg
 
Last edited:
Code:
	sqlType = "mysql"
	sqlHost = "localhost"
	sqlPort = 3306
	sqlUser = "root"
	sqlPass = "Put_Your_Password_Here"
	sqlDatabase = "Put_Your_Database_Name_Here"
	sqlFile = "forgottenserver.s3db"
	sqlKeepAlive = 0
	mysqlReadTimeout = 10
	mysqlWriteTimeout = 10
	passwordType = "plain"


Make sure all the ports are open properly.. What router are you using?
 
I buy a web host that supports mysql and phpmyadmin and I went up to hosting my database and I want to connect to the database nose because I get this error

I once used localhost but I have limits and I have my database safe and no problem!
 

Similar threads

Back
Top