473,772 Members | 2,424 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

exporting tables with password fields

I am making a copy of a dB on my local machine so I can work on the
interface. But the username/password combination -- which works on the
"live" site -- doesn't work on my local machine. Is there something
about the PASSWORD() fxn in mysql that is specific to the installation?
Oct 17 '05 #1
3 1445
Matt wrote:
I am making a copy of a dB on my local machine so I can work on the
interface. But the username/password combination -- which works on the
"live" site -- doesn't work on my local machine. Is there something
about the PASSWORD() fxn in mysql that is specific to the installation?


both are using mysql 4.1.12
Oct 17 '05 #2
>I am making a copy of a dB on my local machine so I can work on the
interface. But the username/password combination -- which works on the
"live" site -- doesn't work on my local machine. Is there something
about the PASSWORD() fxn in mysql that is specific to the installation?


Just copying the dB doesn't copy permissions to use it. Did
you GRANT appropriate permissions? PASSWORD() changed a couple of
times in different versions but if you're using the same version on
both it shouldn't matter. What's the length of the result of PASSWORD()
on each system? As I recall two variants of the length are 16 and 41.
Try SELECT PASSWORD('foo') on both systems.

Gordon L. Burditt
Oct 17 '05 #3
Gordon Burditt wrote:
I am making a copy of a dB on my local machine so I can work on the
interface. But the username/password combination -- which works on the
"live" site -- doesn't work on my local machine. Is there something
about the PASSWORD() fxn in mysql that is specific to the installation?

Just copying the dB doesn't copy permissions to use it. Did
you GRANT appropriate permissions? PASSWORD() changed a couple of
times in different versions but if you're using the same version on
both it shouldn't matter. What's the length of the result of PASSWORD()
on each system? As I recall two variants of the length are 16 and 41.
Try SELECT PASSWORD('foo') on both systems.

Gordon L. Burditt


dB permissions were good -- i've done all that before. Got it fixed and
you were right; it was to do with the hash algorithm changeover in
4.11. My prod. server had the system var old_passwords=O n but not my local.

So anyone else who runs into this: it's not enough that both
installations use 4.1.11 (or .12 or whatev) -- use SHOW VARIABLES like
'old_%' to see that setting.
Oct 17 '05 #4

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

Similar topics

13
1994
by: Neal | last post by:
I've got 2 tables. One, I manually insert data into for HTTP authentication. It has 3 fields: username, password, school. Once the user enters the corrrect u and p, the school name shows up hard coded into a form that gets submitted into another table. So, there is a 'school' field in both tables that always match. Now, I want to draw all the info from this second table to print out but am having problems. So far, I've got something like:...
1
2599
by: Dominic Marks | last post by:
Hi, (I apologise if this is the wrong list, I haven't posted to a postgresql.org mailing list before, general seemed like a good catch-all) I am trying to implement a centralised authentication system using PostgreSQL as the central repository for user and password information. I want to keep a table which contains core user details like the username and password and then use this data
8
6298
by: Carl | last post by:
Hi, I hope someone can share some of their professional advice and help me out with my embarissing problem concerning an Access INSERT query. I have never attempted to create a table with one-to-one relationship but on this occasion I must keep username/password details within a seperate table. Here's the basic specs and database schema: -------------------------------------------
11
1277
by: Neo Geshel | last post by:
I am looking to improve redundancy in a database. If I have several different tables having identical child tables (design, not data) for holding images, is it possible to have all these different tables reference a single common child table to hold their images? If so, how do I maintain referential integrity? I have thought about creating an additional column in the image table called MasterTBL (beside ID, MasterID & IMG) to hold...
6
3699
by: Kevin Chambers | last post by:
Hi all-- In an attempt to commit an Access MDB to a versioning system (subversion), I'm trying to figure out how to convert a jet table's metadata to text, a la SaveAsText. The end goal is to be able to build an MDB completely from the svn repository text files. Has anybody dealt with this? Thanks in advance,
4
1821
by: deejayquai | last post by:
Hi First of all my level = basic! My question= I have a report containing student performance data with a sub-report showing the subjects they have taken that year. I run the report group by group, therefore returning many records, page by page, within the report. This works fine! BUT I have been unable to develop a dynamic crosstab query/report for the sub-report so I can't show the subjects in a table form as the subjcet columns...
6
8228
by: sara | last post by:
I have what I think is a little strange...I have to get data from our payroll system into a specific format (fixed record length) as a .txt or .prn file only to upload to our 401k custodian. I can get the data into Access (from Payroll) and write a query with all the fields (inserting fields with spaces, as needed), but I can't figure out how to get it to export to a .txt file - without the field name header row. I don't really ...
2
1866
by: M | last post by:
I have about 14 tables that I am trying to tie together in a view to see a user's status in our company. Joe User: Email - Active ADP - Active Portal - Inactive etc. We need to track application access across the company, so we have
7
3913
by: alf8kitty | last post by:
Hello, Im still very new to php and am having a problem. I return a MySQL query to a form in my php page and I want to be able to export the form data to Excel when the users clicks a link (or a button). I found some code and can apparently export the entire contents of a table in my database, but when i try to limit the export result using variables...i get nothing. I am hoping someone can point me in the right direction? This is the...
0
9619
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10261
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10103
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9911
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7460
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6713
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5354
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3609
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2850
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.