Hello all,
I have several websites of my own on a VPS, Some of those websites have database functions. Right now I have 2 databases. One has 1 table only; another has several tables.
At my old host, they used HSphere and their databases were on a dedicated IP.
So we used a :
<?php require_once 'inc/dbconfig.php'; ?>
The dbconfig looked like::
<?php
// Global Database Configuration
// subject
$dbms = 'mysql';
$dbhost = 'IP addres';
$dbport = '';
$dbname = '';
$dbuser = '';
$dbpass = 'password';
?>
I haven't been able to get that to work on my VPS. I'm not sure I actually understand the syntax requirement.
Lets say my account is 'account'
IP address is 'ip address'
dbport = ?
db name is .. account_databasename .. correct?
dbuser is 'account'' .. yes/no?
Then I saw something about 'priviledges' which makes me go cross-eyed.
Also, I set up at least one database using the account level phpMyAdmin, not sure about the other. Should I delete that database and set it up with phpMyAdmin under 'root' ?
Thanks,
I have several websites of my own on a VPS, Some of those websites have database functions. Right now I have 2 databases. One has 1 table only; another has several tables.
At my old host, they used HSphere and their databases were on a dedicated IP.
So we used a :
<?php require_once 'inc/dbconfig.php'; ?>
The dbconfig looked like::
<?php
// Global Database Configuration
// subject
$dbms = 'mysql';
$dbhost = 'IP addres';
$dbport = '';
$dbname = '';
$dbuser = '';
$dbpass = 'password';
?>
I haven't been able to get that to work on my VPS. I'm not sure I actually understand the syntax requirement.
Lets say my account is 'account'
IP address is 'ip address'
dbport = ?
db name is .. account_databasename .. correct?
dbuser is 'account'' .. yes/no?
Then I saw something about 'priviledges' which makes me go cross-eyed.
Also, I set up at least one database using the account level phpMyAdmin, not sure about the other. Should I delete that database and set it up with phpMyAdmin under 'root' ?
Thanks,