![]() |
How i can have mysql on one server and the vb php files on another
The topic title shoud explain very well what im trying to figure out.
I wanna have the mysql database of vb on one server and the php files on a diffrent one, does anybody have and idea if thats possible and when ya how. Regards |
PHP Code:
|
so i change localhost to the ip of the server where the databse is on right ?
If ya that didnt worked out well nothing happends when i got to the server with the php files... the server where the database is on runs under plesk maybe the port is diffrent or such ... does somebody might know where i find the port of the mysql .... any idea someone ? |
Yes, but be warned if you are transfer your database over public network you'll need a port speed of atleast 100mbps, and tons of spare bandwidth. Its best to have private connection between the two servers since most the time private bandwidth is free.
And i think plesk mySQL uses 8306 for connections, or something like that |
The port Plesk uses is the default mysql port. However, DB users created through the Plesk interface can only access the DB from the localhost. If you want to connect from a remote system then you'll need to log into the mysql console and add a user that can connect remotely.
|
login via SSH and get to the mysql console, using by typing mysql will get you there
Code:
GRANT ALL PRIVILEGES ON database_name.* TO 'database_user'@'db.server.ip.address' IDENTIFIED BY 'password'; |
All times are GMT. The time now is 10:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|