I have used the following code to get xml output from mysql.
Code:
>mysql -u root -X -e "select * from xxx" database_name;
Code:
ERROR:1049<42000>:unknown database 'database_name;'
|
Contributor
|
|
| 10Dec2009,12:20 | #1 |
|
Hi,
I have used the following code to get xml output from mysql. Code:
>mysql -u root -X -e "select * from xxx" database_name; Code:
ERROR:1049<42000>:unknown database 'database_name;' |
|
Ambitious contributor
|
![]() |
| 10Dec2009,14:53 | #2 |
|
As far as the syntax is concerned, it is correct. But the above error occurs only when the database that you are trying to use "database_name" doesn't exist.
You should check whether you have specified the correct database name and then try the command again. |
|
Contributor
|
|
| 10Dec2009,15:13 | #3 |
|
Hi venami,
Thanks for the reply.I got it solved by removing semicolon at the end of the statement. Thanks. |
|
Ambitious contributor
|
![]() |
| 10Dec2009,17:13 | #4 |
|
Very good
I still remember me doing the same mistake a long time ago ![]() I missed to notice it in your error statement
|