ChuckBell / MySQL_Connector_Arduino

Database connector library for using MySQL with your Arduino projects.
332 stars 133 forks source link

Using mySQL with 2 db names #61

Closed a55830 closed 2 years ago

a55830 commented 6 years ago

hi amazing script , thx for this but i have a little problem , i connect fine but.... i need to supply a name because there is more db's on that ip in php i do this : $link = new mysqli('server', 'user', 'password', 'DatabaseName') if i dont give the DB name then i can connect to the database

is there anywhere i can put it, i tryed : if (conn.connect(server_ip, 3306, mysqlusr, mysqlpws, db_name) but it dont work

ChuckBell commented 6 years ago

Hi,

Yes, that feature can be added. Let me work on that. Could be just the kick I need to release the next version.

Stay tuned…

Dr. Bell

On Aug 17, 2018, at 10:44 AM, Thomas Kjeldsen notifications@github.com wrote:

hi amazing script , thx for this but i have a little problem , i connect fine but.... i need to supply a name because there is more db's on that ip in php i do this : $link = new mysqli('server', 'user', 'password', 'DatabaseName') if i dont give the DB name then i can connect to the database

is there anywhere i can put it, i tryed : if (conn.connect(server_ip, 3306, mysqlusr, mysqlpws, db_name) but it dont work

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/61, or mute the thread https://github.com/notifications/unsubscribe-auth/AH0j4EE0DslHkeL0asWOlbFeQn1SGNugks5uRtbHgaJpZM4WBsEk.

seaburngames commented 5 years ago

any news on this ?

ChuckBell commented 5 years ago

Not yet. Perhaps in the coming months.

On Wed, Nov 14, 2018 at 07:01 seaburngames notifications@github.com wrote:

any news on this ?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/61#issuecomment-438638737, or mute the thread https://github.com/notifications/unsubscribe-auth/AH0j4Ow0SI3RxQPU7y1NoUc2PzmVN4pwks5uvAYjgaJpZM4WBsEk .

fabienroots commented 5 years ago

Hi, I have the same problem with multy db. Have you fix it ? Or have find an other library ? Thanks in advance !

ChuckBell commented 5 years ago

No, not yet. Can you not work around it by including the database in the query?

Sent from my iPad

On Jan 15, 2019, at 2:19 PM, fabienroots notifications@github.com wrote:

Hi, I have the same problem with multy db. Have you fix it ? Or have find an other library ? Thanks in advance !

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

ChuckBell commented 5 years ago

I have a patch ready to test. Would you like to try it out? If so, please PM me at d r c h a r l e s b e l l at g m a i l dot c o m. I'll send you a .diff which you can apply to the latest code in github (may not apply to the one from library manager).

On Wed, Jan 16, 2019 at 9:37 PM Chuck Bell drcharlesbell@gmail.com wrote:

No, not yet. Can you not work around it by including the database in the query?

Sent from my iPad

On Jan 15, 2019, at 2:19 PM, fabienroots notifications@github.com wrote:

Hi, I have the same problem with multy db. Have you fix it ? Or have find an other library ? Thanks in advance !

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ChuckBell/MySQL_Connector_Arduino/issues/61#issuecomment-454516224, or mute the thread https://github.com/notifications/unsubscribe-auth/AH0j4PwOuUbTdMEAyVHuYj0pp9lomEmiks5vDimlgaJpZM4WBsEk .