login  Naam:   Wachtwoord: 
Registreer je!
 Forum
Zoeken  Regels  Help
Categorieën > PHP & SQL

MySQL installatie vragen

Voldemort – 08/08/2005 16:32 (Laatst gewijzigd op 09/08/2005 21:06)
Vraag 1: Ik heb Apache 1.3.33, PHP 5.0.4 en MySQL 4.1.13 geïnstalleerd. De rechten kon ik nog gAlleen als ik in phpmyadmin 3.6.3 pl1 wil inloggen dmv cookie krijg ik dit:

Citaat:
#1130 - Host 'localhost' is not allowed to connect to this MySQL server


En mijn config.inc.php is:

  1. <?php
  2. /* $Id: config.inc.php,v 2.53 2005/06/07 16:44:39 lem9 Exp $ */
  3. // vim: expandtab sw=4 ts=4 sts=4:
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Sets the php error reporting - Please do not change this line!
  14.  */
  15. if (!isset($old_error_reporting)) {
  16. @ini_set('display_errors', '1');
  17. }
  18.  
  19.  
  20. /**
  21.  * Your phpMyAdmin url
  22.  *
  23.  * Complete the variable below with the full url ie
  24.  * http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  25.  *
  26.  * It must contain characters that are valid for a URL, and the path is
  27.  * case sensitive on some Web servers, for example Unix-based servers.
  28.  *
  29.  * In most cases you can leave this variable empty, as the correct value
  30.  * will be detected automatically. However, we recommend that you do
  31.  * test to see that the auto-detection code works in your system. A good
  32.  * test is to browse a table, then edit a row and save it. There will be
  33.  * an error message if phpMyAdmin cannot auto-detect the correct value.
  34.  *
  35.  * If the auto-detection code does work properly, you can set to TRUE the
  36.  * $cfg['PmaAbsoluteUri_DisableWarning'] variable below.
  37.  */
  38. $cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin';
  39.  
  40.  
  41. /**
  42.  * Disable the default warning about $cfg['PmaAbsoluteUri'] not being set
  43.  * You should use this if and ONLY if the PmaAbsoluteUri auto-detection
  44.  * works perfectly.
  45.  */
  46. $cfg['PmaAbsoluteUri_DisableWarning'] = FALSE;
  47.  
  48. /**
  49.  * Disable the default warning that is displayed on the DB Details Structure page if
  50.  * any of the required Tables for the relationfeatures could not be found
  51.  */
  52. $cfg['PmaNoRelation_DisableWarning'] = FALSE;
  53.  
  54. /**
  55.  * The 'cookie' auth_type uses blowfish algorithm to encrypt the password. If
  56.  * at least one server configuration uses 'cookie' auth_type, enter here a
  57.  * passphrase that will be used by blowfish. The maximum length seems to be 46
  58.  * characters.
  59.  */
  60. $cfg['blowfish_secret'] = 'blowfish_secret';
  61.  
  62. /**
  63.  * Server(s) configuration
  64.  */
  65. $i = 0;
  66. // The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
  67. // You can disable a server config entry by setting host to ''.
  68. $i++;
  69. $cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
  70. $cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
  71. $cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
  72. $cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
  73. $cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
  74. $cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
  75. // (requires PHP >= 4.3.0)
  76. $cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
  77. // (this user must have read-only
  78. $cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
  79. // and "mysql/db" tables).
  80. // The controluser is also
  81. // used for all relational
  82. // features (pmadb)
  83. $cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
  84. $cfg['Servers'][$i]['user'] = 'Voldemort'; // MySQL user
  85. $cfg['Servers'][$i]['password'] = ''; // MySQL password (only needed
  86. // with 'config' auth_type)
  87.  
  88.  
  89.  
  90.  
  91. //Verder heb ik niks meer aangepast
  92. ?>



Waarom krijg ik die fout? Wat is er fout in mijn config.inc.php?

[Opgelost]

Vraag2: Op mysql.com staat er dat ik de eerste keer mysql aan met leggen dmv cmd en dan mysqld --console

Dat lukt.

Alleen, er staat op mysql.com dat dat voor de eerste keer is, hoe gaat het dan de tweede keer?

[NIET opgelost]


Pagina:

15 antwoorden

Gesponsorde links

Gerard – 08/08/2005 16:39
Je gebruikersnaam heeft geen rechten om een verbinding te maken met de mysql server.

via dos even de mysql ingaan en dan zorgen dat de host erbij toegevoegd wordt aan jouw username.

Voldemort – 08/08/2005 16:40
En hoe doe ik dat allemaal? cmd? Wat typ ik in in MS DOS?

Gerard – 08/08/2005 16:41
dit zijn vragen voor google 

Voldemort – 08/08/2005 17:00 (Laatst gewijzigd op 08/08/2005 17:01)
Dit is een wmsite, dus dit zijn toch ook vragen voor hier, het is over PHP & MySQL. Een aangezien MySQL die fout geeft is het ook een vraag voor een webmastersite.

Hoe doe ik dat met die rechten in MS DOS?

nemesiskoen – 08/08/2005 17:26
als je iets op deze site wilt vragen zoek dan op zen minst een op de site zelf. Ze hebben bij tutorials categoriën ingedeeld. Dit is een vraag voor webservers, daar zitten 8 tuto's. Om die even snel af te gaan...
tip

Voldemort – 08/08/2005 17:31
Die tut van jou is voor localhost/iets te maken of een beveiliging, daar kan ik toch niks met doen? Daar spreken ze toch niet over die fout?

nemesiskoen – 08/08/2005 17:40
ze gaan niet voor elke mogelijke fout een tutorial maken wêh
jij wilt weten hoe je via DOS met MySQL kan prutsen, dat wordt daar beschreven.

Gerard – 08/08/2005 17:46
En als je het dan nog niet snapt kan je doen wat ik al eerder zei; googlen.

Hele sites over hoe je mysql moet besturen vanuit een shell/dos omgeving, moet niet te moeilijk zijn daar de 4 (ofzo) benodigde comando's vandaan te trekken.

Eigen initiatief mede-community-member!

Voldemort – 08/08/2005 17:55
@nemisiskoen: Dan snap ik nog niks van die DOS commando's

@Proximus: Google geeft allemaal resultaten weer waar niks hierover staat.

Legolas – 08/08/2005 18:19 (Laatst gewijzigd op 08/08/2005 18:27)
Toch zou ik als ik jou was, Voldemort, XAMPP installeren. Installeer het in een compleet nieuwe directory, en ga die achteraf niet lopen wijzigen, want dan loopt het forum weer vol met tig serverproblemen. Ik heb XAMPP - nog nooit 1 probleem gehad. Het staat ergens bij de downloads van Sitemasters.;-)

edit:
Citaat:
Prachtig programma bundel!

bevat:
+ Apache 2.0.52
+ MySQL 4.0.21
+ PHP 5.0.2 + PHP 4.3.9 + PEAR
+ PHP-Switch win32 1.0 (by Apachefriends, use the "php-switch.bat")
+ MiniPerl 5.8.3
+ SQLite 2.8.15
+ PHPMyAdmin 2.6.0 pl1
+ ADODB 4.52
+ Mercury Mail Transport System for Win32 and NetWare Systems v4.01a
+ FileZilla FTP Server 0.9.3
+ Webalizer 2.01-10
+ Zend Optimizer 2.5.3

Voor Windows 98, 2000, XP.

LET OP:
mysql openen met: mysql_start.bat
sluiten met: mysql_stop.bat
[wanneer je dit niet doet, kan je de volgende keer wanneer je je computer opstart, MYQL niet meer opstarten]

apache:
openen met: apache.bat
sluiten met: kruisje

Vanaf 'LET OP' moet je het anders doen:
je opent alles, apache, mysql en de hele andere zooi start je met:
xampp_start.exe en stop je met: xampp_stop.exe

Gesponsorde links


Pagina:

Dit onderwerp is gesloten.
Actieve forumberichten:

© 2002-2012 Sitemasters.be - Regels - Gehost door: Vircon - Laadtijd: 0.07s