| |||||||||||
| |||||||||||
MySQL - Password security (authentication protocol)
Ever had this message?
bash> mysql -h www.weekendinwiltshire.co.uk -u weekend -pThe MySQL login password / security model changed between MySQL version 4.0 and version 4.1. In MySQL 4.0 (and prior) there were security risks that related to the password being intercepted between clients and the server, which were fixed with a new protocol from MySQL 4.1.
Here's the MySQL instruction that you'll need to set the old password mode for a particular account ...You will, though, have to run the actual command to set it from a new style client: SET PASSWORD FOR "wwweb"@"localhost" = OLD_PASSWORD("paddington") ;This issue of out-of-date clients is particularly relevant to PHP installations, where you're using an older version of PHP on a web server to contact a new MySQL - perhaps running on a different host. In the past, PHP shipped with the MySQL drivers but a new, and tighter, open source license applied to recent versions of MySQL precludes the shipping of parts of MySQL with PHP. The easiest solution is to download and install MySQL before you download and install PHP, and to ensure that you use PHP installation switches to pull in the mysql or mysqli functions as required, together with the appropriate drivers already installed with MySQL. Further discussions on the MySQL upgrade here and more detail of the password hashing in MySQL here. (written 2007-04-02 09:10:43) Associated topics are indexed under S161 - Data Access and Security in MySQLS159 - MySQL 5 and PHP 5 S153 - Sourcing, Running and Configuring MySQL
Some other Articles
Government pressure on me to shut up after I make the papersFunction / method parameters with * and ** in Python B-2-B Networking, 20th April. Useful for YOUR business? Well House Manor, Melksham, Art Gallery MySQL - Password security (authentication protocol) Science Museum - larger exhibits / store, Wroughton, Swindon Golfing, Wiltshire (near Melksham) Avon Vale hunt at the Point to Point A day at the races MacFormat - Me and My Mac 1638 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33 at 50 posts per pageThis is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price. Link to Ezine home page (for reading). Link to Blogging home page (to add comments). |
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho | |||||||||||