# How can I connect my wix page to mySql db?

**URL:** <https://forum.wixstudio.com/t/how-can-i-connect-my-wix-page-to-mysql-db/36488>\
**Category:** Ask the community\
**Tags:** wix-blog, code, question\
**Created:** [September 14, 2020, 3:02pm UTC](https://forum.wixstudio.com/t/how-can-i-connect-my-wix-page-to-mysql-db/36488 "2020-09-14T15:02:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wix77842](https://avatars.discourse-cdn.com/v4/letter/w/c77e96/32.png) [@wix77842](https://forum.wixstudio.com/u/wix77842)\
**Post date:** [September 14, 2020, 3:02pm UTC](https://forum.wixstudio.com/t/how-can-i-connect-my-wix-page-to-mysql-db/36488/1 "2020-09-14T15:02:30Z")

</div>

I want to connect my wix webpage to an mySql database.

I just want to send one string from wix to my database.  
The string is generated in js:

```javascript
import wixData from 'wix-data';

wixData.query("Blog/Posts")
  .find()
  .then( (results) => {
 let itemOne = results.items[0];
 let itemTwo = results.items[1];

 let blogOne = itemOne.title + ", " + itemOne.postPageUrl;
 let blogTwo = itemTwo.title + ", " + itemTwo.postPageUrl;

 let lastResult = [blogOne,blogTwo]; //export this string to my db

    })
  .catch( (err) => {
 let errorMsg = err;
  });

```

but the problem is, I have no idea how I can connect to mysql. There is an option to connect to an external db collection, but they ask for an endpoint url, which I never heard of while using mysql…

Can somebody please tell me how to get mysql to my data collections?
