Hey everyone!

With the holiday season upon us, we want to share our upcoming working hours:

After that, we’ll return to our regular schedule and assist you as quickly as possible.

In the meantime, you can explore our documentation for Amelia and wpDataTables. You'll find tons of helpful resources, including articles and handy video tutorials on YouTube (Amelia's YouTube Channel and wpDataTables' YouTube Channel), which might just have the answers you need while we’re away.

Thanks a bunch for your understanding and support!

Warm regards and happy holidays!

TMS

Okay
  Public Ticket #3406091
mysql connection in WordPress
Closed

Comments

  • Clayton started the conversation

    I added a MySql connection in WordPress with WPDataTables and was able to successfully connect to it. But it does not appear in any of the lists of data sources when I try to create a table. Also, which table creation method should I use so that the end user can make a change to the table on a WordPress page and it will get updated in the MySql db? The MySql db is in the AWS cloud.

  •  1,847
    Miloš replied

    Hi, Clayton.

    I will advise you in general about the option to add another Database connection, and you can add as many Databases as you need, of course.

    -

    I suppose you already did this first part, since you said the connection is successfully made.

    If the DB Connection Test was successful.

    Once you fill out all these DB connection details, try the "Test Connection" button.

    If the connection is successful, hit the "Save Changes" at the top right.

    7296307387.png

    Then, our plugin is going to save this as an additional Database connection for you.

    You can also select it as the "Default DB connection" at the bottom right, if needed.

    -

    Now, when you go to Create a New Table in our plugin, it will first ask you which Database you will use,

    then it will move to the next step, such as what kind of table you need, etc.

    You will see the "Connection" selection dropdown during Table Creation.

    3618846114.png

    -

    After you choose this Database, then you can either manually write a custom SQL Query to pull the data from tables you need, or you can try our SQL Query Constructor Helper Tool.

    -

    Here you can see more details about our MySQL query-based tables.

    Please note: Using this plugin feature requires at least a basic knowledge of SQL. It is assumed that you can create the table in some MySQL data manager (e.g., PHPMyAdmin, MySQL Workbench), and prepare a SQL query that will return the data you need. 

    A good way to achieve this can be experimenting using our WPDB SQL Query Constructor tool.

    - Please note: this tool is not an ultimate query generator. It simply constructs a suggestion of a query. We are constantly working to improve it, but SQL is such a complicated and flexible language that full automation for constructing queries is next to impossible. 

    Consequently, the more complicated the query, the higher is the probability that it will not return exactly what you need. So, you will often need to play around with the resulting query.

    Please be advised that writing custom SQL Queries or debugging Queries does not fall under what our support covers, but we can help with some basic troubleshooting, depending on how complex your Query is.

    You can check out this official page of WP codex,  for help with writing custom Queries.

    -

    And as  mentioned before, we also have that refund period, so you will be able to fully try out everything you need and we will be here to provide support.

    If the plugin does not suit the use-case, you can also get a refund.

    Let us know if that helps.

    -

    2. In regards to editing tables on front-end WP Page and having it update the source table from the Database,

    this is the default behaviour.

    You can choose either SQL Query Based table if you need to manually make the SQL Query to pull the data,

    or try our SQL Query Constructor helper, as said above;

    then activate front-end editing, in the Editing settings of this table,

    and front-end users can edit it, it will store the changes to the source DB table.

    -

    Let me know if that helps.

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia 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

  • Clayton replied

    Hi Miloš,

    Thank you very much for your quick reply and your assistance. I am able to create a table from the MySQL database in Amazon Web Services and am able to edit the data as the front-end user and have the table in the MySQL database updated. You have solved my problem.

    Best, 

    Clayton

  •   Miloš replied privately