473,322 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Can't access created DB's via PHP, though can access them via phpMyAdmin

Hello there:

This is my problem ...
I can create databases via mysql-shell and edit them. These then do show
in phpMyAdmin and are editable.

BUT, if I try to access these db's via a normal php-script (i.e.
$ergebnis=mysql__list_dbs($server)), it only shows me one database, the
test-db.
(To show them, I use a for-loop which counts the elements in $ergebnis
from 0 to the number smaller than mysql_num_rows($server) and then prints
the string.)

I would very much appreciate your help.
Thanx in advance,
Notger.

##-----------------------------------------------#
Article posted from PHP Freaks NewsGroup
http://www.phpfreaks.com/newsgroup
Get Addicted: mailing.database.mysq
##-----------------------------------------------##
Jul 20 '05 #1
1 1382
Notger Heinz wrote:
I can create databases via mysql-shell and edit them. These then do show
in phpMyAdmin and are editable.

BUT, if I try to access these db's via a normal php-script (i.e.
$ergebnis=mysql__list_dbs($server)), it only shows me one database, the
test-db.


I see something similar from the UNIX command line when I run
"mysqlshow" without providing a MySQL username. It shows me databases
that can be viewed anonymously, which is only the test database on my
system. If I specify the right username, it shows me all the databases.

So you may have to specify a username and possibly a password when you
connect via PHP. It depends on how the database privileges are defined
on your system.

Regards,
Bill K.
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Roger | last post by:
I've just tried installing phpMyAdmin but it looks like I did somethin wrong. How did I install: 1. Installed Apache 2.0.48 2. Installed php 4.3.4 3. Installed Mysql 3.23.58 4. After...
3
by: Ruby Tuesday | last post by:
How do I transfer my MS Access DB to MySQL? One issue though, in Access I have some special character such fraction, backquote, etc ... how do I replace those characters to ASCI equivalent...
2
by: pascal Joseph | last post by:
How is the simply way to transfert a DB Access with PHPMyAdmin to a DB MySQL?? Exporting each table from access in format .csv, I have a little problem to insert them correctly with PHP my admin....
0
by: bettina | last post by:
I had originally an Access DB. Then I created the same structure with phpMyAdmin and exported my Access DB to MySql. It was located under mysql/data.... and everything was ok. Now I wanted to...
1
by: Notger Heinz | last post by:
Hello there: This is my problem ... I can create databases via mysql-shell and edit them. These then do show in phpMyAdmin and are editable. BUT, if I try to access these db's via a normal...
12
by: Arno R | last post by:
Hi there, I just distributed an application in which I (try to) change db.properties depending on CurrentUser() For instance I set the property's AllowBypassKey and AllowBuiltinToolbars to False...
12
by: mistral | last post by:
phpMyAdmin 2.6.2 problem: can no connects to mySQL database: each time shown error #1045 - Access denied for user 'username'@'192.168.1.2' (using password: YES) Is seems, this is most common...
2
by: nogger | last post by:
Hi all, newbie here so be gentle :-) I just installed PHPMYADMIN V3.0.0 and (after a lot of struggle with mysql extensions) finally got it running with Apache 2.2.4 & PHP 5.2.3 The problem i...
3
by: robin1983 | last post by:
Dear All, I have problem in phpmyadmin (WAMP). I already worked in phpmyadmin, then I installed Mysql 5.1 in my system. After installation of mysql, separately, its not allowing to access the...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.