phpMyAdmin

Pagina: 1
Acties:

  • XL79
  • Registratie: Februari 2000
  • Laatst online: 18-09 19:09
Hoi,

ik heb net APACHE, PHP, en MYSQL geinstalleerd:

heb MyPHPAdmin gedl en onder HTDOCS gezet....

nu krijg ik de volgende error

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 11 in c:\apache\apache\htdocs\phpmyadmin\libraries\common.lib.php on line 572


my.cnf staat op C:\

en ziet er zo uit:


# 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=16K
set-variable = max_allowed_packet=1M
set-variable = thread_stack=64K
set-variable = table_cache=4
set-variable = sort_buffer=64K
set-variable = net_buffer_length=2K
server-id = 1

# Uncomment the following if you want to log updates
#log-bin

# Uncomment the following rows if you move the MySQL distribution to another
# location
basedir = c:/apache/mysql/
datadir = c:/apache/mysql/data/


# Uncomment the following if you are NOT using BDB tables
#skip-bdb

# Uncomment the following if you are using Innobase tables
#innodb_data_file_path = ibdata1:100M
#innodb_data_home_dir = c:\ibdata
#innodb_log_group_home_dir = c:\iblogs
#innodb_log_arch_dir = c:\iblogs
#set-variable = innodb_mirrored_log_groups=1
#set-variable = innodb_log_files_in_group=3
#set-variable = innodb_log_file_size=5M
#set-variable = innodb_log_buffer_size=8M
#innodb_flush_log_at_trx_commit=1
#innodb_log_archive=0
#set-variable = innodb_buffer_pool_size=16M
#set-variable = innodb_additional_mem_pool_size=2M
#set-variable = innodb_file_io_threads=4
#set-variable = innodb_lock_wait_timeout=50

[mysqldump]
quick
set-variable = max_allowed_packet=16M

[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates

[isamchk]
set-variable = key_buffer=8M
set-variable = sort_buffer=8M

[myisamchk]
set-variable = key_buffer=8M
set-variable = sort_buffer=8M

[mysqlhotcopy]
interactive-timeout


Het pad naar phpMyAdmin is:

C:\Apache\Apache\htdocs\phpMyAdmin

en een stukje uit config.inc.php:


$cfgPmaAbsoluteUri = 'http://localhost/phpMyAdmin';


/**
* Server(s) configuration
*/
$i = 0;
// The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfgServers[$i]['host'] = 'localhost'; // MySQL hostname
$cfgServers[$i]['port'] = ''; // MySQL port - leave blank for default port
$cfgServers[$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfgServers[$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfgServers[$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfgServers[$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfgServers[$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfgServers[$i]['user'] = 'root'; // MySQL user
$cfgServers[$i]['password'] = 'paswoord'; // MySQL password (only needed
// with 'config' auth_type)
$cfgServers[$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed
// at left frame
// It may also be an array
// of db-names
$cfgServers[$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
$cfgServers[$i]['bookmarkdb'] = ''; // Bookmark db - leave blank for no bookmark support
$cfgServers[$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
$cfgServers[$i]['relation'] = ''; // table to describe the relation between links (see doc)
// - leave blank for no relation-links support


heeft iemand een idee..

thanks :D

  • blackd
  • Registratie: Februari 2001
  • Niet online
werkt mysql wel gewoon goed?

9000Wp o/w SolarEdge SE6K - Panasonic 5kW bi-bloc - gasloos sinds 17-7-2023


  • djc
  • Registratie: December 2001
  • Laatst online: 08-09-2025

djc

Welke versie van phpMyAdmin heb je gehaald? Als je gewoon 2.4.0 haalt moet het volgens mij prima werken. Eventueel heb je een gebrek aan rechten voor bepaalde dingen op de gebruiker waarmee je inlogt op de server?

Rustacean


  • XL79
  • Registratie: Februari 2000
  • Laatst online: 18-09 19:09
Nou, eigenlijk weet ik helemaal niet of MySQL werkt. Ik heb MyPHPAdmin geinstalleerd omdat ik wat tabellen etc wilde maken... ik start mysql met een batchfile : start c:\apache\mysql\bin\mysqld-nt.exe --standalone

  • MAZZA
  • Registratie: Januari 2000
  • Laatst online: 09-09 15:29

MAZZA

Barbie is er weer!

Connect er eens op zou ik zeggen... Hoe? Door ff de docs te lezen :)

  • blackd
  • Registratie: Februari 2001
  • Niet online
XL schreef op 04 April 2003 @ 16:10:
Nou, eigenlijk weet ik helemaal niet of MySQL werkt.
Ga dat eens testen dan.

9000Wp o/w SolarEdge SE6K - Panasonic 5kW bi-bloc - gasloos sinds 17-7-2023


  • XL79
  • Registratie: Februari 2000
  • Laatst online: 18-09 19:09
'mysql -u root test' geeft

C:\Apache\mysql\bin>mysql -u root test
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.12-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

  • blackd
  • Registratie: Februari 2001
  • Niet online
Je hoeft dus geen password in te voeren, begrijp ik? dan hoef je dat ook niet in te voeren in je config.inc.php
Maar, het instellen van een password voor user root is wel aan te raden. Dus dit kan je beter wel in gaan stellen.

9000Wp o/w SolarEdge SE6K - Panasonic 5kW bi-bloc - gasloos sinds 17-7-2023


  • XL79
  • Registratie: Februari 2000
  • Laatst online: 18-09 19:09
heb daarna \s gedaan en

Connection ID : 3
Current Database : test
Current User : root@localhost
SSL: Not in use
Server version : 4.0.12-nt
Protocol version : 10
Connection : Localhost via TCP
....
....
TCP port: 3306
....

Threads : 1 Questions : 12 Slow Q: 0 Opens: 7 Flush Tables : 7 Open Tables :0

  • XL79
  • Registratie: Februari 2000
  • Laatst online: 18-09 19:09
Ik zal er eens naar kijken.. doe ik vanavond wel.. moet nu naar m'n werk. Iig bedankt voor de hulp zover :D

  • XL79
  • Registratie: Februari 2000
  • Laatst online: 18-09 19:09
Mm als ik

mysql > SELECT
> USER();

doe dan krijg ik een user ODBC@localhost en geen root@localhost is dat normaal?

Ik heb trouwens nu een password ingesteld en krijg het volgende als ik naar localhost/phpMyAdmin/index.php ga.


Welkom op phpMyAdmin 2.2.6


Notice: Undefined variable: cfgOBGzip in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at c:\apache\apache\htdocs\phpmyadmin\libraries\auth\config.auth.lib.php:91) in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at c:\apache\apache\htdocs\phpmyadmin\libraries\auth\config.auth.lib.php:91) in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at c:\apache\apache\htdocs\phpmyadmin\libraries\auth\config.auth.lib.php:91) in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 25

Warning: Cannot modify header information - headers already sent by (output started at c:\apache\apache\htdocs\phpmyadmin\libraries\auth\config.auth.lib.php:91) in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 26

Warning: Cannot modify header information - headers already sent by (output started at c:\apache\apache\htdocs\phpmyadmin\libraries\auth\config.auth.lib.php:91) in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 27

Notice: Undefined variable: charset in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at c:\apache\apache\htdocs\phpmyadmin\libraries\auth\config.auth.lib.php:91) in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 29

Notice: Undefined variable: text_dir in c:\apache\apache\htdocs\phpmyadmin\header.inc.php on line 38

Fout

MySQL retourneerde:


Access denied for user: 'ODBC@127.0.0.1' (Using password: YES)


----

ik krijg toch meer het gevoel dat het met authorisaties te maken heeft of niet?

Er zijn geen tabellen gemaakt etc...

  • Neman
  • Registratie: September 2000
  • Laatst online: 30-08 12:47

Neman

Een uit de lucht gegrepen naam

Je moet even de nieuwste versie gebruiken, zoals Manuzhai ook al zei. Ik had exact hetzelfde probleem met 2.2.6 i.c.m. MySQL 4.0.

  • XL79
  • Registratie: Februari 2000
  • Laatst online: 18-09 19:09
Nou heb de nieuwste versie erop gezet... en nu krijg ik


-----------------
Welkom op phpMyAdmin 2.4.0


Fout

MySQL retourneerde:


Access denied for user: 'root@127.0.0.1' (Using password: YES)
--------------

Heb mijn password veranderd met

mysqladmin -uroot password MIJN PASWOORD

maar nu wil hij dus niet connecten als ik een password zet in de configuratiefile van phpMyAdmin.

Ik heb nu het password weg gehaald uit de config.inc.php en nu doet hij het wel. Ik zie beide databases MYSQL en TEST. Maar goed het is niet de bedoeling dat het niet beveiligd is.

Heeft iemand een idee?

thx
Pagina: 1