Errors while executing mysql cmds in SUn solaris server


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Errors while executing mysql cmds in SUn solaris server
# 1  
Old 06-25-2008
Errors while executing mysql cmds in SUn solaris server

Hi All,

I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases.

for example
mysql > show databases;
It displayed as follows.

exampledb1
exampledb2
mysql
test

Now i used mysql > use exampledb1;
its given message called database changed.

now i trying to show all the tables under exampledb1 database using the below command.

mysql > show tables;

Now i am getting one error called

ERROR 12: Can't read dir of './exampledb1/' (Errcode: 13)

then i tried to drop the exampledb1 database using the below command.

mysql> drop database exampledb1;

Now i am getting different error.

ERROR 1008: Can't drop database 'exampledb1'. Database doesn't exist

can you please give me solutions for the above errors?
# 2  
Old 06-25-2008
Hammer & Screwdriver Errors while executing mysql cmds in SUn solaris server

Hi,

Thing is, you're logged in a ROOT. I'm not 100% sure about this but my guess is that you should try login as the DB user instead?.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Solaris

Sun Server and Solaris 7 Inquiry

Greetings! Will be firing up the good ole pizza box, soon. Does anyone know if Solaris 7 is still okay to use? Last time I attempted was 2006. Thank you in advance, ControlTomato (6 Replies)
Discussion started by: ControlTomato
6 Replies

2. Solaris

Compile PHP 5.3.6 with MySql on Sun Blade 1500 Solaris 10

Hello, I'm trying to compile PHP 5.3.6 with Apache2 and MySql 5.5.12. I hit a problem that I can't seem to resolve by myself and I could not find a solution on the web. It looks like Apache and MySql installed ok, I can start/stop them with no problem. When I try to compile PHP the... (4 Replies)
Discussion started by: pn8830
4 Replies

3. Solaris

Errors trying to compile PHP for use with MySQL on Solaris 10

have installed and am using the GNU based tools from the Sunfreeware site to compile PHP. I already have Apache, MySQL, and Oracle compiled and working properly. Below is my configure string for my PHP build: ./configure --prefix=/usr/local/php5 \... (2 Replies)
Discussion started by: sunsysadm2003
2 Replies

4. Shell Programming and Scripting

Errors while executing cmds in sun solaris

Hi All, I am using mysql at sun solaris unix(Hp) server. I logged into mysql server with root as user. its logged in properly. Then i used 'show databases' mysql command. its display all the available databases. for example mysql > show databases; It displayed as follows. exampledb1 ... (1 Reply)
Discussion started by: dbsurf
1 Replies

5. Solaris

What's the difference: 'nuhup cmds' Vs 'cmds &'

Hello, Case: If I want to run a script background and logout, which command should I use ? 1)# ./script_name & 2)# nohup script_name 3)# nohup script_name & And any differences ? What happens if I redirect the output to a file? I learned somewhere that the (1) format will stop... (5 Replies)
Discussion started by: billshu
5 Replies
Login or Register to Ask a Question