18. november 2000 - 16:18Der er
27 kommentarer og 1 løsning
phpMyAdmin Problemer
Jeg har installeret apache, php, mySQL på min computer og det fungere problemfrit.
Derudover har jeg installere phpMyAdmin, og det har tidligere også fungeret, men det gør det ikke længere. Jeg kan ikke oprette nye databaser, se indholdet i tabellerne osv.
Jeg får følgende fejl: MySQL returnerede: No Database Selected
<? // $Id: config.inc.php3,v 1.28 2000/07/13 13:52:48 tobias Exp $ // // phpMyAdmin Configuration File // All directives are explained in Documentation.html // // The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0]. // You can disable a server config entry by setting host to \'\'. $cfgServers[1][\'host\'] = \'home\'; // MySQL hostname $cfgServers[1][\'port\'] = \'\'; // MySQL port - leave blank for default port $cfgServers[1][\'adv_auth\'] = false; // Use advanced authentication? $cfgServers[1][\'stduser\'] = \'root\'; // MySQL standard user (only needed with advanced auth) $cfgServers[1][\'stdpass\'] = \'\'; // MySQL standard password (only needed with advanced auth) $cfgServers[1][\'user\'] = \'root\'; // MySQL user (only needed with basic auth) $cfgServers[1][\'password\'] = \'\'; // MySQL password (only needed with basic auth) $cfgServers[1][\'only_db\'] = \'\'; // If set to a db-name, only this db is accessible $cfgServers[1][\'verbose\'] = \'\'; // Verbose name for this host - leave blank to show the hostname $cfgServers[2][\'host\'] = \'\'; $cfgServers[2][\'port\'] = \'\'; $cfgServers[2][\'adv_auth\'] = false; $cfgServers[2][\'stduser\'] = \'\'; $cfgServers[2][\'stdpass\'] = \'\'; $cfgServers[2][\'user\'] = \'\'; $cfgServers[2][\'password\'] = \'\'; $cfgServers[2][\'only_db\'] = \'\'; $cfgServers[2][\'verbose\'] = \'\'; $cfgServers[3][\'host\'] = \'\'; $cfgServers[3][\'port\'] = \'\'; $cfgServers[3][\'adv_auth\'] = false; $cfgServers[3][\'stduser\'] = \'\'; $cfgServers[3][\'stdpass\'] = \'\'; $cfgServers[3][\'user\'] = \'root\'; $cfgServers[3][\'password\'] = \'\'; $cfgServers[3][\'only_db\'] = \'\'; $cfgServers[3][\'verbose\'] = \'\'; // If you have more than one server configured, you can set $cfgServerDefault // to any one of them to autoconnect to that server when phpMyAdmin is started, // or set it to 0 to be given a list of servers without logging in // If you have only one server configured, $cfgServerDefault *MUST* be // set to that server. $cfgServerDefault = 1; // Default server (0 = no default server) $cfgServer = \'\'; unset($cfgServers[0]); $cfgManualBase = \"manual\"; $cfgConfirm = true; $cfgPersistentConnections = False; $cfgBorder = \"0\"; $cfgThBgcolor = \"#D3DCE3\"; $cfgBgcolorOne = \"#CCCCCC\"; $cfgBgcolorTwo = \"#DDDDDD\"; $cfgMaxRows = 30; $cfgMaxInputsize = \"300px\"; $cfgOrder = \"ASC\"; $cfgShowBlob = true; $cfgShowSQL = true; require(\"danish.inc.php3\"); $cfgColumnTypes = array( \"TINYINT\", \"SMALLINT\", \"MEDIUMINT\", \"INT\", \"BIGINT\", \"FLOAT\", \"DOUBLE\", \"DECIMAL\", \"DATE\", \"DATETIME\", \"TIMESTAMP\", \"TIME\", \"YEAR\", \"CHAR\", \"VARCHAR\", \"TINYBLOB\", \"TINYTEXT\", \"TEXT\", \"BLOB\", \"MEDIUMBLOB\", \"MEDIUMTEXT\", \"LONGBLOB\", \"LONGTEXT\", \"ENUM\", \"SET\"); $cfgFunctions = array( \"ASCII\", \"CHAR\", \"SOUNDEX\", \"CURDATE\", \"CURTIME\", \"FROM_DAYS\", \"FROM_UNIXTIME\", \"NOW\", \"PASSWORD\", \"PERIOD_ADD\", \"PERIOD_DIFF\", \"TO_DAYS\", \"USER\", \"WEEKDAY\", \"RAND\"); $cfgAttributeTypes = array( \"\", \"BINARY\", \"UNSIGNED\", \"UNSIGNED ZEROFILL\"); // Setting magic_quotes_runtime - do not change! set_magic_quotes_runtime(0); ?>
$cfgServers[1][\'host\'] = \'localhost\'; // MySQL hostname $cfgServers[1][\'port\'] = \'\'; // MySQL port - leave blank for default port $cfgServers[1][\'adv_auth\'] = false; // Use advanced authentication? $cfgServers[1][\'stduser\'] = \'root\'; // MySQL standard user (only needed with advanced auth) $cfgServers[1][\'stdpass\'] = \'\'; // MySQL standard password (only needed with advanced auth) $cfgServers[1][\'user\'] = \'root\'; // MySQL user (only needed with basic auth) $cfgServers[1][\'password\'] = \'\'; // MySQL password (only needed with basic auth) $cfgServers[1][\'only_db\'] = \'\'; // If set to a db-name, only this db is accessible $cfgServers[1][\'verbose\'] = \'\'; // Verbose name for this host - leave blank to show the hostname
Jeg får også en gang imellem \"No Database Selected\" - i hvert fald hvis jeg vil tilføje kolonner til en tabel. Men så kan jeg bare lave en \"alter table ... \" selv. Måske jeg skulle opgradere... Er det altid du får fejlen, eller det kun i nogle - specifikke - tilfælde?
prøv at lave dit database navn om så det ik heder \"root\" og så giv data baseb et password så det fek.s ser sådan her ud:: $cfgServers[1][\'host\'] = \'localhost\'; // MySQL hostname $cfgServers[1][\'port\'] = \'\'; // MySQL port - leave blank for default port $cfgServers[1][\'adv_auth\'] = false; // Use advanced authentication? $cfgServers[1][\'stduser\'] = \'sunti\'; // MySQL standard user (only needed with advanced auth) $cfgServers[1][\'stdpass\'] = \'\'; // MySQL standard password (only needed with advanced auth) $cfgServers[1][\'user\'] = \'sunti\'; // MySQL user (only needed with basic auth) $cfgServers[1][\'password\'] = \'101010\'; // MySQL password (only needed with basic auth) $cfgServers[1][\'only_db\'] = \'\'; // If set to a db-name, only this db is accessible $cfgServers[1][\'verbose\'] = \'\'; // Verbose name for this host - leave blank to show the hostname
så skulle det vorke alt sammen men husk nu at oprette den database med rigtigt navn og password Bacce
Hvis det er til nogen hjælp så kommer min my.cnf her:
# Example mysql config file. # Copy this file to c:\\my.cnf to set global options # # One can use all long options that the program supports. # Run the program with --help to get a list of available options
# This will be passed to all mysql clients [client] #password=my_password port=3306 #socket=MySQL # Here is entries for some specific programs # The following values assume you have at least 32M ram # The MySQL server [mysqld] port=3306 #socket=MySQL skip-locking set-variable = key_buffer=16M set-variable = max_allowed_packet=1M set-variable = thread_stack=128K set-variable = flush_time=1800
# Uncomment the following row if you move the MySQL distribution to another # location basedir = d:/internet/mysql/
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.