- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Fatal Error on MySql
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:24 AM
06-18-2003 06:24 AM
Fatal Error on MySql
I use RedHat 8.0 as web server with PHP and MySql as below:
php-4.2.2-8.0.5
mysql-server-3.23.52-3
My colleague uploaded a lot of PHP files to the web server recently. When we tried to access our default web page, an error message is displayed as below:
Fatal error: Call to undefined function: mysql_connect() in /home/surathin/public_html/includes/functions/database.php on line 19
My colleague and I have no idea on this error. Any idea or solution on this error?
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:57 AM
06-18-2003 06:57 AM
Re: Fatal Error on MySql
Be more careful in the future.
If not an option, get the php file from another server.
Post the php file if its not to big. What's on line 18 or 19?
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 07:03 AM
06-18-2003 07:03 AM
Re: Fatal Error on MySql
Get it here :
http://rpmseek.com/rpm-pl/php-mysql.html?hl=com&cs=php-mysql:PN:0:0:0
Check also that both are started, with service mysqld restart, service httpd restart.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:05 PM
06-18-2003 06:05 PM
Re: Fatal Error on MySql
I tried to install "php-mysql-4.2.2-8.0.5.i386.rpm" as follows:
[root@es1 dng]# rpm -ivh php-mysql-4.2.2-8.0.5.i386.rpm
warning: php-mysql-4.2.2-8.0.5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60
e
Preparing... ########################################### [100%]
1:php-mysql ########################################### [100%]
[root@es1 dng]#
After rebooting the web server, i checked the module as below:
[root@es1 dng]# rpm -qa "php-mysql*"
php-mysql-4.2.2-8.0.5
[root@es1 dng]#
Then, I tried to access the default web page, the error message I posted before is disappeared. 2 new warning messages are displayed as below:
Warning: Access denied for user: 'surathin@localhost' (Using password: YES) in /home/surathin/public_html/includes/functions/database.php on line 19
Warning: MySQL Connection Failed: Access denied for user: 'surathin@localhost' (Using password: YES) in /home/surathin/public_html/includes/functions/database.php on line 19
Unable to connect to database server!
Attached file is "database.php". Any idea or solution? Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:06 PM
06-18-2003 06:06 PM
Re: Fatal Error on MySql
I tried to install "php-mysql-4.2.2-8.0.5.i386.rpm" as follows:
[root@es1 dng]# rpm -ivh php-mysql-4.2.2-8.0.5.i386.rpm
warning: php-mysql-4.2.2-8.0.5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60
e
Preparing... ########################################### [100%]
1:php-mysql ########################################### [100%]
[root@es1 dng]#
After rebooting the web server, i checked the module as below:
[root@es1 dng]# rpm -qa "php-mysql*"
php-mysql-4.2.2-8.0.5
[root@es1 dng]#
Then, I tried to access the default web page, the error message I posted before is disappeared. 2 new warning messages are displayed as below:
Warning: Access denied for user: 'surathin@localhost' (Using password: YES) in /home/surathin/public_html/includes/functions/database.php on line 19
Warning: MySQL Connection Failed: Access denied for user: 'surathin@localhost' (Using password: YES) in /home/surathin/public_html/includes/functions/database.php on line 19
Unable to connect to database server!
Attached file is "database.php". Any idea or solution? Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2003 06:55 PM
06-18-2003 06:55 PM
Re: Fatal Error on MySql
Check the username/password that are listed in 'database.php', then check the tokens that are in the mysql table, and see if they match.
("select password('yourpaswd'), password from user where user = 'yourusername';, and make sure that the two match).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 04:29 AM
06-19-2003 04:29 AM
Re: Fatal Error on MySql
check this password(yourpassword) way of precising the password.
J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-19-2003 05:52 PM
06-19-2003 05:52 PM
Re: Fatal Error on MySql
My colleague and I believe that all problems are from our server. Once we solve all problems, I will let you all know the good news.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2003 03:01 AM
06-20-2003 03:01 AM
Re: Fatal Error on MySql
is the database instance up and running and do u have correct access permissions.
-balaji
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2003 10:59 PM
06-25-2003 10:59 PM
Re: Fatal Error on MySql
My colleague adjusted the user permission on MySql database. Warning message disappeared.
Thanks all.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-27-2003 04:49 AM
06-27-2003 04:49 AM
Re: Fatal Error on MySql
:]]
J