473,395 Members | 1,999 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,395 software developers and data experts.

Can't connect from PHP to MySQL after upgrade to 4.1.7?

Hi All,

Last night I upgraded my MySQL install from 4.0.20 to 4.1.7. All
seemed to go well -- i stopped and removed the 4.0.20 service.
Installed 4.1.7. Then copied my MYD etc files from the data directory
of my 4.0.20 installation to the new installation and can now use the
mysql client to access the data in my dbs and tables.

However, for some reason, all of my PHP scripts have stopped working,
except, for some reason, PHPMyAdmin (presumably because it's using the
root user?). I've recreated the user I ordinarily use to get to my
databases and have given it global privelages, but still can't get it
to work.

Does anyone have any suggestions as to how I might fix this?

Much warmth,

Murray
http://www.planetthoughtful.org
Building a thoughtful planet,
one snide comment at a time...
Jul 20 '05 #1
3 1615
M Wells wrote:
I've recreated the user I ordinarily use to get to my
databases and have given it global privelages, but still can't get it
to work.


Can you connect to the database in the mysql CLI, using this login?

If not, did you use the FLUSH PRIVILEGES command after creating the user
and granting privileges?

These are pretty basic questions, I'm just trying to rule out the easy
stuff... I frequently have to slap my forehead after making such a mistake!

Regards,
Bill K.
Jul 20 '05 #2
On Sun, 07 Nov 2004 11:34:42 -0800, Bill Karwin <bi**@karwin.com>
wrote:
M Wells wrote:
I've recreated the user I ordinarily use to get to my
databases and have given it global privelages, but still can't get it
to work.


Can you connect to the database in the mysql CLI, using this login?

If not, did you use the FLUSH PRIVILEGES command after creating the user
and granting privileges?

These are pretty basic questions, I'm just trying to rule out the easy
stuff... I frequently have to slap my forehead after making such a mistake!


Hi Bill,

Yes, I can connect using the mysql CLI with the username and password,
and can 'USE' the database in question and select records from it.

I haven't tried FLUSH PRIVELEGES, but I can give that a try as well.

Any other suggestions / thoughts?

Thanks for your help...

Much warmth,

Murray
http://www.planetthoughtful.org
Building a thoughtful planet,
one snide comment at a time...
Jul 20 '05 #3
On Sun, 07 Nov 2004 20:01:06 GMT, M Wells <pl**************@gmail.com>
wrote:
On Sun, 07 Nov 2004 11:34:42 -0800, Bill Karwin <bi**@karwin.com>
wrote:
M Wells wrote:
I've recreated the user I ordinarily use to get to my
databases and have given it global privelages, but still can't get it
to work.


Can you connect to the database in the mysql CLI, using this login?

If not, did you use the FLUSH PRIVILEGES command after creating the user
and granting privileges?

These are pretty basic questions, I'm just trying to rule out the easy
stuff... I frequently have to slap my forehead after making such a mistake!


Hi Bill,

Yes, I can connect using the mysql CLI with the username and password,
and can 'USE' the database in question and select records from it.

I haven't tried FLUSH PRIVELEGES, but I can give that a try as well.

Any other suggestions / thoughts?


Okay, after some Googling it turns out that I needed to change my
MySQL user passwords using the OLD_PASSWORD function.

I'm wondering why this was necessary for PHP version 4.3.6?

Still, it appears to now be back up and working.

Much warmth,

Murray
http://www.planetthoughtful.org
Building a thoughtful planet,
one snide comment at a time...
Jul 20 '05 #4

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

Similar topics

0
by: Stefan Hinz | last post by:
Degan, jumping in to try and solve some problems that look pretty obvious to me ... > #options for default service (mysqld2) > (mysqld2) It should be , not (mysqld2).
0
by: Bill Hernandez | last post by:
Hi, I've been writing software on the mac since 1987, but am brand new at unix/php/mysql, and that's where I'm headed so I'm reading everything I can get my hands on, but like anything else...
2
by: BDR | last post by:
Questions for anyone with experience on this topic... Sit: We're running a standalone server with applications/db's written around 3.23.41. Linux R/H 7.2 with updates. This is an Apache...
3
by: Pugi! | last post by:
On a freshly installed Fedora C3 (incl. webserver apache php mysql) i get the following problem when connecting to mysql through a browser (phpMyAdmin): : #2002 Can't connect to local MySQL...
1
by: jiing | last post by:
Now let me describe what I have done and my purpose: Originally, I want to user ports to install phpBB But I found that phpBB doesn't support mysql 5.x (but the ports installed mySQL 5.0.0...
13
by: wideangle | last post by:
Hello there! I know it's stupid, but when creating a table in a mysql (win32) database, it won't let me create this "mytable". Here goes my ER_PARSE_ERROR. mysql> CREATE TABLE `mytable` ( ->...
4
by: wzhao6898 | last post by:
Hi there, I'm trying to figure out if it's going painless to upgrade our oooold mysql 3.23 to the latest MySQL 4 or 5. Any suggestions? Thanks in advance! David
5
by: Carlo Tambuatco | last post by:
I have set up MySQL on my home computer, and I am writing a PHP enabled web site to run queries on this database. I have created a database called 'weather' on mysql that I want to access via my...
2
by: xiuchuanli | last post by:
I install Fedora 4 with web server, after that I installed mysql 5.0.15. Now I can connect to mysql from command line and mysql-administrator and mysql-query-browser. But when I try to test to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.