MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 19th, 2000, 05:42 AM
ads
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi,
What is the command to change permissions of mysql table?
I am getting following error when I perform command from mysql command propmt.
mysql> SELECT * INTO OUTFILE 'output.txt' fields terminated by '|' FROM information1;

ERROR 1045: Access denied for user: '*****@*****.com' (Using password: YES)

How to change access permission of information1.

Reply With Quote
  #2  
Old February 22nd, 2000, 12:21 PM
dvanabel dvanabel is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2000
Location: Lakewood, CO, USA
Posts: 8 dvanabel User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by ads:
Hi,
What is the command to change permissions of mysql table?
I am getting following error when I perform command from mysql command propmt.
mysql> SELECT * INTO OUTFILE 'output.txt' fields terminated by '|' FROM information1;

ERROR 1045: Access denied for user: '*****@*****.com' (Using password: YES)

How to change access permission of information1.
[/quote]

Two Options here:

We can teach you how to eat the fish, or we can teach you how to fish. Let's pick the second, and teach you how to fish.

See Devshed's documentation Section 6 (6.10).
http://www.devshed.com/Server_Side/...anual/manfiles/

The folks at Devshed have provided us a wonderful service, we should all use it.

Good luck fishing!


Reply With Quote
  #3  
Old February 23rd, 2000, 04:12 AM
ads
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
thanks for help, but i am not root user.
I am on virtual host and my ISP does not allow these permissions. If you can suggest something which can be done through php script will be great help for me.
thanks

[This message has been edited by ads (edited February 23, 2000).]

Reply With Quote
  #4  
Old February 23rd, 2000, 08:24 AM
rod k rod k is offline
Apprentice Deity
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Jul 1999
Location: Niagara Falls (On the wrong side of the gorge)
Posts: 3,237 rod k User rank is Private First Class (20 - 50 Reputation Level)rod k User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 m 8 sec
Reputation Power: 17
Send a message via AIM to rod k
If you don't have permissions and you aren't root, and root refuses to change for you... well, you are out of luck.

Reply With Quote
  #5  
Old February 23rd, 2000, 03:32 PM
TroutMask TroutMask is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Englewood, CO
Posts: 30 TroutMask User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
If you have an account with a host and your account is supposed to have PHP/MySQL access, you'll probably have to ask your support team to set up a database for you. They will then give you privileges and a user_id/password to use to access your database to create tables, etc.

Generally, hosts don't automatically set up a database for you even if it is included in your hosting fee.

-TM


Reply With Quote
  #6  
Old February 24th, 2000, 07:22 AM
ads
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Hi Troutmask,
As you said my ISP has given me username and password to creat database table. Here I want to take backup of table 'information1' and need to take backup almost daily for which i want to copy table 'information1' to output file 'output.txt' with following command.
mysql> SELECT * INTO OUTFILE 'output.txt' fields terminated by '|' FROM information1;
I have tried all the command mentioned earlier.

I am getting following error.
ERROR 1045: Access denied for user: '*****@*****.com' (Using password: YES
I am new to MySql, bur error means permissions for file 'output.txt' has to be changed to copy data from 'information1'.
My basic requirement is to take backup of database table to text file. If one can suggest any other way to do this job. I will be thankful to him and the forum.



[This message has been edited by ads (edited February 24, 2000).]

Reply With Quote
  #7  
Old February 24th, 2000, 09:52 AM
TroutMask TroutMask is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2000
Location: Englewood, CO
Posts: 30 TroutMask User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 14
Your other SQL commands work okay with the same user_id and password from that host?

The only time that I have seen that error is when the MySQL database permissions weren't set up for me to connect from a specific host. Once I set up correct permissions, I don't see that error any more.

If it is in fact MySQL telling you that it can't write that file, you may have to have mysqld (the MySQL daemon) set up as a user on the system where it is trying to write the file. Perhaps it is a problem with mysqld trying to write the file, but it does not have permission to create files on the system, though that seems unlikely.

Anyway, as far as an alternative method, I would write a Perl or PHP script to select * and write it to a text file. Quite easy.

-TM

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > How to change mysql table permissions

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap