| |
|
Welcome to KnowledgeSutra - Dear Guest | |
SQL database
#1
Posted 29 July 2004 - 11:59 AM
#2
Posted 30 July 2004 - 04:14 PM
WYSWYC
first,using MySQL Databases to create databases,the name will be Yourname_name.
then ,using phpMyAdmin--SQL to create tables.
eg:
1.adding database znithy_base1
2.giving znithy_base1 Privileges to znithy
3.go to phpMyAdmin--SQL
4.run codes:
CREATE TABLE club_posts (
id mediumint(8) unsigned NOT NULL auto_increment,
fid mediumint(8) unsigned default '0',
nickname varchar(20) NOT NULL default '',
email varchar(50) default NULL,
) TYPE=MyISAM;
IN phpMyAdmin--SQL console
#3
Posted 30 July 2004 - 05:00 PM
As znithy said, you need to make sure you include the 'yourname_' before the database name you are trying to connect to. Also, 'yourname_' before the user name you are using to connect to the database server.
From PHP, you can create a MySQL database simply with the mysql_create_db() function. Or, if you wanted to, you could run it as a query, eg:
mysql_query("CREATE DATABASE db_name");
#4
Posted 30 July 2004 - 06:18 PM
The other easy way would be use phpmydamin and try connecting with it. Atleast you will be assured that your database is fine. then you may also use the SQL generated by it in your programs.
#5
Posted 31 July 2004 - 01:12 AM
#6
Posted 31 July 2004 - 02:04 AM
EDIT:
I've finally sorted it out! Eureka
#7
Posted 31 July 2004 - 05:10 AM
#8
Posted 31 July 2004 - 05:34 AM
So even if you entered all the correct info in phpNuke's config.php file, if the dbuname value (example xxx_yyy) hasn't been granted permission for that particular database through cPanel, it will tell you the database doesn't exist.
#9
Posted 31 July 2004 - 03:23 PM
#10
Posted 31 July 2004 - 03:53 PM
#11
Posted 31 July 2004 - 06:08 PM
#12
Posted 02 August 2004 - 02:03 AM
Sauron, on Jul 31 2004, 03:23 PM, said:
Quote
Nope, myphpAdmin has nothing to do here, its use to administer the database. There was no problem with the database itself so it didn't help. The way things are set up in the cPanel database permissions is much easier controlled tthough the MySQL db management tool because its there you make it.
Quote
Are you asking about PHP in general? or PHPNuke it self?
#13
Posted 02 August 2004 - 03:11 AM
#14
Posted 02 August 2004 - 03:12 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users




This topic is locked









