I am trying to create a table using a simple SQL query (i.e. SELECT * FROM `registry_hospitals`). By using the same query in the phpMyAdmin it works fine, retrieving all the data of the table. Nevertheless, when I use this in wpDataTables, it does not work and it gives back the following message: MySQL said: Table 'hellenic057434_wp_8xdjk.registry_hospitals' doesn't exist.
Obviously, the hellenic057434_wp_8xdj is the name of the database. I wonder what I need to do in order to make the plugin work.
Thank you for your purchase, and sorry for the inconvenience.
From version 2.3 we've implemented a feature that you can use multiple separate DB connections for MySQL, MSSQL and PostgreSQL. For MySQL engine we are dynamically adding the accent grave ( ` ), so there's no need to use it around the table name in the query.
I think that the problem was that I was trying to call for a table which was not on the default DB of my Wordpress website. I assume that I have to use the SEPARATE DB CONNECTION option from the Settings, where I will toput the details of the DB where the tables I need to look at exist. I am going to do this and will let you know about the outcome.
That could be the case, of course. If the table is in a different database, then you do need to add a separate DB connection in order to connect to that DB.
Also, when you do that, you will see a database selection drop-down when you enter the "Create a table" screen, where you need to select the database you want to create a table from.
I am trying to create a table using a simple SQL query (i.e. SELECT * FROM `registry_hospitals`). By using the same query in the phpMyAdmin it works fine, retrieving all the data of the table. Nevertheless, when I use this in wpDataTables, it does not work and it gives back the following message: MySQL said: Table 'hellenic057434_wp_8xdjk.registry_hospitals' doesn't exist.
Obviously, the hellenic057434_wp_8xdj is the name of the database. I wonder what I need to do in order to make the plugin work.
Kind regards
Andreas Lazaris
Hello Andreas.
Thank you for your purchase, and sorry for the inconvenience.
From version 2.3 we've implemented a feature that you can use multiple separate DB connections for MySQL, MSSQL and PostgreSQL. For MySQL engine we are dynamically adding the accent grave ( ` ), so there's no need to use it around the table name in the query.
Can you please try with this:
and let me know if it works?
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi Aleksandar
Thank you for your reply
I think that the problem was that I was trying to call for a table which was not on the default DB of my Wordpress website. I assume that I have to use the SEPARATE DB CONNECTION option from the Settings, where I will toput the details of the DB where the tables I need to look at exist. I am going to do this and will let you know about the outcome.
Thank again for your kind answer
Regards
Andreas
Hi Andreas.
That could be the case, of course. If the table is in a different database, then you do need to add a separate DB connection in order to connect to that DB.
Also, when you do that, you will see a database selection drop-down when you enter the "Create a table" screen, where you need to select the database you want to create a table from.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables