PDA

View Full Version : Please guide me



girl81
10-07-2006, 07:25 AM
hi all.. i want to create new database in phpmyadmin..why it said no privileges..what should i do..thanks

gcypher
10-07-2006, 02:11 PM
Meaning you dont have permission to create a new database.
If you have admin privilige on DA you could assign another database to the account you want to use it with.
:D

girl81
10-07-2006, 06:52 PM
Originally posted by gcypher
Meaning you dont have permission to create a new database.
If you have admin privilige on DA you could assign another database to the account you want to use it with.
:D Thanks a lot..Now i successfully created new database in phpmyadmin.

Your database has been setup. Use the following values:
Database:company_dbcompany
Host: localhost
Username:company_123
Password:123456

Then how could i link with my php form..I tried this one but it said Could not connect...thanks

<?php
$db_connect = 'localhost';
$db_user = 'root';
$db_pass = '';
$used_db = 'company_dbcompany';

$mysql_link = @mysql_connect($db_connect, $db_user, $db_pass) or die("Could not connect");
$mysql_db = @mysql_select_db($used_db, $mysql_link) or die("Could not select database");
?>

gcypher
10-08-2006, 11:51 AM
Substitute this:


Originally posted by girl81

<?php
$db_connect = 'localhost';
$db_user = 'root';
$db_pass = '';
$used_db = 'company_dbcompany';




for this,:


<?php
$db_connect = 'localhost';
$db_user = 'company_123';
$db_pass = '123456';
$used_db = 'company_dbcompany';

girl81
10-10-2006, 01:08 AM
Originally posted by gcypher
Meaning you dont have permission to create a new database.
If you have admin privilige on DA you could assign another database to the account you want to use it with.
:D Where can i get admin privilege on DA..please...tq

gcypher
10-10-2006, 03:13 AM
Originally posted by girl81
Where can i get admin privilege on DA..please...tq

Well usually logging in at http://domain.com:2222 using "admin" as username.

girl81
10-10-2006, 10:13 AM
Originally posted by gcypher
Well usually logging in at http://domain.com:2222 using "admin" as username. Thanks a lot gcypher..i'm really appreciated it..:) Now i'm already can linked my database with myphp form...but once i open phpmyadmin why there is still noticed No databases at the left of the corner and also no privilege.

In order to view the existing database..I have to click Show Processes-->Need to hit Refresh.-->View Structure...
then the database will displayed. Am i missing something??Thanks

woober
10-11-2006, 03:39 AM
When you go to MySQL setting in DA, dont you see a link to phpMyAdmin under the create a database link?

girl81
10-11-2006, 05:15 AM
Originally posted by woober
When you go to MySQL setting in DA, dont you see a link to phpMyAdmin under the create a database link? Thanks..yes..i have already created database in phpmyadmin..but i just wondering and really want to know why my database name not displayed at the left corner in phpmyadmin..still noticed No databases.

woober
10-11-2006, 05:24 AM
ok. I see, that problem might be found in your /var/www/html/phpMyAdmin/config.inc.php

Check you mysql db settings here.

girl81
10-11-2006, 05:29 AM
Originally posted by woober
ok. I see, that problem might be found in your /var/www/html/phpMyAdmin/config.inc.php

Check you mysql db settings here. Thanks..but how..but what it means..i dont understand ..can u tell me more details..thanks

woober
10-11-2006, 05:43 AM
Compare it with my settings.

Dl it from here... (http://www.pcland.no/pub/phpmyadmin-config.zip)

girl81
10-11-2006, 05:50 AM
Thanks a lot