473,486 Members | 2,394 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

phpMyAdmin: tbl_replace.php: Missing db

Hi,

I'm new to mysql and just installed phpmyadmin.

Here is the versions info:

System Linux linlyne.spider.sense 2.4.22-1.2199.nptl #1

PHP Version 4.3.8

Apache/2.0.50 (Fedora)

Client API version 3.23.58

Welcome to phpMyAdmin 2.5.7-pl1

MySQL 3.23.58 running on localhost as root@localhost

************************************************** ************************************************** ***
********** Error messages *******************************************
************************************************** ************************************************** ***

When creating database:

Server localhost

db_create.php: Missing db

When inserting new row in user table:

tbl_replace.php: Missing db
tbl_replace.php: Missing table
tbl_replace.php: Missing goto

Accessing phpMyAdmin from LAN:

Connection refused (that's OK)

Where can i start with to solve my pb with phpMyAdmin ?

Thank you.

************************************************** ************************************************** ***********
***************** Following is part of my config.inc.php file: *******
************************************************** ************************************************** ***********
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port -
leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the
socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect
to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed
protocol for the MySQL connection
// (requires PHP
= 4.3.0)

$cfg['Servers'][$i]['controluser'] = ''; // MySQL control
user settings
// (this user must
have read-only

$cfg['Servers'][$i]['controlpass'] = ''; // access to the
"mysql/user"
// and "mysql/db"
tables).
// The controluser
is also
// used for all
relational
// features
(pmadb)
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication
method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password
(only needed
// with 'config'
auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a
db-name, only
// this db is
displayed in left frame
// It may also be
an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name
for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb'] = ''; // Database used
for Relation, Bookmark and PDF Features
// (see
scripts/create_tables.sql)
// - leave blank
for no support
// DEFAULT:
'phpmyadmin'

Jul 20 '05 #1
2 3338
Never mind.. I found the solution. hope this will help...

Other Info:

- Using dynamic IP
- Using no-ip.com services
- prt 80 closed = using 8080

solution:

Change $cfg['PmaAbsoluteUri'] variable as posted by www.linboost.org
(thank you guys) to:

$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' :
'http')
. '://' . $_SERVER['HTTP_HOST'] . (!empty($_SERVER['SERVER_PORT'])
? ':'
. $_SERVER['SERVER_PORT'] : '')
. substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'],
'/')+1);

But even there, because no-ip was appending the port number, it was
included in the $_SERVER['HTTP_HOST'] variable,
so i had to take it off to:

$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' :
'http') . '://' . $_SERVER['HTTP_HOST']
. substr($_SERVER['PHP_SELF'], 0,
strrpos($_SERVER['PHP_SELF'], '/')+1);

Et voila!
Le Wed, 18 Aug 2004 07:21:19 -0400, Daniel Mercier
<da*************@videotron.ca> a écrit :
Hi,

I'm new to mysql and just installed phpmyadmin.

Here is the versions info:

System Linux linlyne.spider.sense 2.4.22-1.2199.nptl #1

PHP Version 4.3.8

Apache/2.0.50 (Fedora)

Client API version 3.23.58

Welcome to phpMyAdmin 2.5.7-pl1

MySQL 3.23.58 running on localhost as root@localhost

************************************************* ************************************************** ****
********** Error messages *******************************************
************************************************* ************************************************** ****

When creating database:

Server localhost

db_create.php: Missing db

When inserting new row in user table:

tbl_replace.php: Missing db
tbl_replace.php: Missing table
tbl_replace.php: Missing goto

Accessing phpMyAdmin from LAN:

Connection refused (that's OK)

Where can i start with to solve my pb with phpMyAdmin ?

Thank you.

************************************************* ************************************************** ************
***************** Following is part of my config.inc.php file: *******
************************************************* ************************************************** ************
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port -
leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the
socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect
to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed
protocol for the MySQL connection
// (requires PHP
= 4.3.0)

$cfg['Servers'][$i]['controluser'] = ''; // MySQL control
user settings
// (this user must
have read-only

$cfg['Servers'][$i]['controlpass'] = ''; // access to the
"mysql/user"
// and "mysql/db"
tables).
// The controluser
is also
// used for all
relational
// features
(pmadb)
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication
method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password
(only needed
// with 'config'
auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a
db-name, only
// this db is
displayed in left frame
// It may also be
an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name
for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb'] = ''; // Database used
for Relation, Bookmark and PDF Features
// (see
scripts/create_tables.sql)
// - leave blank
for no support
// DEFAULT:
'phpmyadmin'


Jul 20 '05 #2
Never mind...

I found out myself. But I would have appreciated some help on this
since I lost lots of time.

Answer:

Additionnal info:

- dynamic ip from ISP ;
- closed port 80 by ISP so using 8080 instead ;
- using no-ip.com services that was adding the 8080 port in
directing to my host ;

Solution:

Had to change the $cfg['PmaAbsoluteUri'] variable in config.inc.php
to:
$cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' :'http')
.. '://' . $_SERVER['HTTP_HOST'] . (!empty($_SERVER['SERVER_PORT']) ?
':' . $_SERVER['SERVER_PORT'] : '') . substr($_SERVER['PHP_SELF'],
0, strrpos($_SERVER['PHP_SELF'], '/')+1); ##### found on
www.linboost.org (thank you guys).

But even there had to remove the (!empty($_SERVER['SERVER_PORT']) ?
':' . $_SERVER['SERVER_PORT'] : '') part since no-ip was already
adding the port and the port was included in the $_SERVER['HTTP_HOST']
variable.

Hope this will help.

Daniel

Le Wed, 18 Aug 2004 07:21:19 -0400, Daniel Mercier
<da*************@videotron.ca> a écrit :
Hi,

I'm new to mysql and just installed phpmyadmin.

Here is the versions info:

System Linux linlyne.spider.sense 2.4.22-1.2199.nptl #1

PHP Version 4.3.8

Apache/2.0.50 (Fedora)

Client API version 3.23.58

Welcome to phpMyAdmin 2.5.7-pl1

MySQL 3.23.58 running on localhost as root@localhost

************************************************* ************************************************** ****
********** Error messages *******************************************
************************************************* ************************************************** ****

When creating database:

Server localhost

db_create.php: Missing db

When inserting new row in user table:

tbl_replace.php: Missing db
tbl_replace.php: Missing table
tbl_replace.php: Missing goto

Accessing phpMyAdmin from LAN:

Connection refused (that's OK)

Where can i start with to solve my pb with phpMyAdmin ?

Thank you.

************************************************* ************************************************** ************
***************** Following is part of my config.inc.php file: *******
************************************************* ************************************************** ************
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname
or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port -
leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the
socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect
to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed
protocol for the MySQL connection
// (requires PHP
= 4.3.0)

$cfg['Servers'][$i]['controluser'] = ''; // MySQL control
user settings
// (this user must
have read-only

$cfg['Servers'][$i]['controlpass'] = ''; // access to the
"mysql/user"
// and "mysql/db"
tables).
// The controluser
is also
// used for all
relational
// features
(pmadb)
$cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication
method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password
(only needed
// with 'config'
auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a
db-name, only
// this db is
displayed in left frame
// It may also be
an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name
for this host - leave blank to show the hostname

$cfg['Servers'][$i]['pmadb'] = ''; // Database used
for Relation, Bookmark and PDF Features
// (see
scripts/create_tables.sql)
// - leave blank
for no support
// DEFAULT:
'phpmyadmin'


Jul 20 '05 #3

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

Similar topics

0
1916
by: Chris | last post by:
Hi, I'm running PHP (version 4.3.1), MySqlAdmin 1.3 & PHPmyadmin 2.4.0 on Apache HTTP Server 2.0.45. I'm having problems with phpmyadmin in particular. I'm running several tables and querying...
4
2858
by: JimC | last post by:
I have PHP installed on a Windows XP platform using IIS as server. When updating a MySQL database field set to MEDIUMTEXT in phpMyAdmin, the transaction seems to fail if the text contains more...
7
6913
by: 'bonehead | last post by:
Okay, I've never used phpMyAdmin before but I'm trying to learn. I've downloaded the .zip file and unzipped it on my Windows box. It looks like all I have to do now is ftp all the files to the...
0
1883
by: phpnube | last post by:
I used this php package to install on my system... (i had problems with the isapi package from php so im back to the cgi portion of PHP php-cgi.exe) PHP 5.0.0 installer - 26 July 2004 (CGI...
2
9006
by: Daniel Mercier | last post by:
Hi, I'm new to mysql and just installed phpmyadmin. Here is the versions info: System Linux linlyne.spider.sense 2.4.22-1.2199.nptl #1 PHP Version 4.3.8
3
2156
by: cofused | last post by:
Hi, I have set up the Xitami server (2.5c2) and PHP (5.0.5) on my Win98 system without any problem. I am trying to add PhpMyAdmin. When I try to load http://home/phpmyadmin which loads...
5
3349
by: NewbieSupreme | last post by:
I installed Apache 2.0.58, tested it, got the "working" page. Installed MySQL 5.0.22, and didn't really see how to test that, but there is a mysql process running in the task manager. Ran through...
5
3033
by: Marcus | last post by:
Hello, I am having a problem with a query in phpMyAdmin... it works fine on my localhost, but the exact same query produces an error in phpMyAdmin on my server: localhost: PHP 4.3.11, MySQL...
0
1456
by: Marcus | last post by:
Hello, I am trying to configure phpMyAdmin 2.8.2. I un-commented the following line in config.inc.php: // Force: always use this language - must be defined in // ...
8
8859
by: Jonathan Sachs | last post by:
I just tried to install phpMyAdmin on my system, and I can't get it to work. When I tried to run the setup procedure (setup.php) I got the following message: Fatal error: session_start() :...
0
7105
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6967
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7180
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4870
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4564
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
600
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
266
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.