Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
Quote:
A Database Error Occurred
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '.`net_ahmed`' at line 1
SQL
SHOW TABLES FROM `maanaa`.`net_ahmed`
Filename: controllers/Messenger_bot.php
Line Number: 2017


What I have tried:

I am using the ichatbot script and when I try to click on Bot Messenger from the settings I get an error message

Is there any solution
Posted
Updated 21-Mar-21 3:03am
v2
Comments
Richard MacCutchan 21-Mar-21 5:29am    
"Is there any solution "
Yes, do what the message tells you and correct your command syntax. By the look of the little that you have posted, it could be those back quote characters in SHOW TABLES FROM `maanaa`.`net_ahmed`
Mester Perfect 21-Mar-21 8:25am    
I don't know how to fix it
Do I put the content of the file referred to in the message for you?
Richard MacCutchan 21-Mar-21 13:35pm    
No. Please use the Improve question link above and add the details there.

1 solution

SHOW TABLES command expects the name of the database, it's usually a single name, not containing a period.

You can also use SHOW TABLES without any database name so you can try that.

For more info about the syntax, see SHOW TABLES - MariaDB Knowledge Base[^]

Also you can use SHOW DATABASES - MariaDB Knowledge Base[^] to list all the databases.
 
Share this answer
 
v3
Comments
Wendelius 21-Mar-21 11:30am    
Looking at the answer in Solution 3, do you mean you want to display the content of a table. In such case you would use SELECT - MariaDB Knowledge Base[^]. If you need to modify the content then you would use
- INSERT - MariaDB Knowledge Base[^]
- UPDATE - MariaDB Knowledge Base[^]
- DELETE - MariaDB Knowledge Base[^]

Note, if you have a question concerning a solution, please use the "Have a Question or Comment" button. This is the only way the person who gave the answer, sees the comment

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900