azuredatastudio icon indicating copy to clipboard operation
azuredatastudio copied to clipboard

[Database Support] MySQL

Open sbehara1 opened this issue 5 years ago • 87 comments

If you want to see MySQL support in Azure Data Studio, click the thumbs up sign.

Note: Please keep comments to this issue focused on discussions of what you would like to see instead of +1 comments.

sbehara1 avatar Apr 08 '19 21:04 sbehara1

Seems support mysql 5.6+ is enough for us.

ghost avatar Apr 08 '19 23:04 ghost

Would like to see mysql over ssh , mysql tcp/ip, mysql unix socket , these three way connect mysql

ghost avatar Apr 08 '19 23:04 ghost

Product name is Azure Data Studio, not MSSQL Data Studio, so I would expect the ability to connect to and manage any database product that is supported on Azure, including MySQL. :)

dsghi avatar Jul 05 '19 19:07 dsghi

I am wishing for this everyday, is there a feature branch that has been started for this support yet?

Would love to help contribute

m34nbunny avatar Aug 01 '19 01:08 m34nbunny

With Azure database for MySQL I would imagine Azure Data Studio should be able to support T-SQL on MySQL. I am starting to look into moving from Google Cloud Platform to Microsoft Azure for WordPress hosting. Using Azure Data Studio and snippets would fit in nicely.

ghost avatar Aug 19 '19 16:08 ghost

I would love this functionality. Bog standard 8.0 would be ideal. Even full support of 5.x would make me happy.

bonolo avatar Nov 12 '19 16:11 bonolo

I'd appreciate support for MySQL/MariaDB - supported versions only.

zollo avatar Nov 18 '19 14:11 zollo

Would be nice to get an update on the status of this, just to know if still being considered, if is approved and will be done at some point in the future, just to know what to expect, for know it seems like the support will not come any time soon :(

GaboFDC avatar Dec 03 '19 23:12 GaboFDC

Please give us an update about the support from mysql. I badly require this support.

vijaychandar1989 avatar Dec 08 '19 07:12 vijaychandar1989

mysql support we need please.

499978920 avatar Dec 11 '19 11:12 499978920

Just here to reaffirm that basic query execution agains a MYSQL database would suffice... no auto completion needed or other fancy features...

Leonardo-Ferreira avatar Jan 08 '20 20:01 Leonardo-Ferreira

Microsoft's video at https://docs.microsoft.com/en-us/sql/sql-server/what-s-new-in-sql-server-ver15?view=sql-server-ver15 at 6:48 states that Azure Data Studio supports MySQL. However, while I was able to enable PostgreSQL support using the extension, I don't see an extension for MySQL. Am I missing something?

jemiller0 avatar Jan 10 '20 19:01 jemiller0

Since this is a multi platform SQL client, it should at least support MySQL. MySQL 5 is fine. 8 is a plus. The reason is simple. MySQL (and its derivative, MariaDB) still known as a popular choice of relational database. Specially for those who work with unix-like servers. The fact that this tool ran at linux and can't even connect to MySQL, even after mentioned since April last year, is baffling.

firanto avatar Feb 17 '20 14:02 firanto

Joining the fray... any update on this?

Wauna avatar Feb 25 '20 14:02 Wauna

Any plan or roadmap?

btstream avatar Mar 05 '20 08:03 btstream

There's been a couple of demos from Microsoft where I've seen the extension, sure would be nice to see it released.

frugecn avatar Mar 30 '20 16:03 frugecn

Any update about the availability of a MySQL connector in Azure Data Studio?

Thx for any feedback. maik

maiksandmann avatar Apr 27 '20 08:04 maiksandmann

There the missing piece of Azure Data Studio is MySQL Connector also some good IntelliSense for that :)

naimsulejmani avatar May 26 '20 20:05 naimsulejmani

Would be superb to have MySQL support. The only other alternative in MacOS is DataGrip and is slow as hell..

rafaribe avatar Jun 07 '20 19:06 rafaribe

With Notebook support in Azure Data Studio, it would be very useful to be able to connect to Azure MySQL (Knowing Azure PostgreSQL already been supported in Azure Data Studio)

Azure Data Studio team can you please shed some light on whether this is considered so that we can see the end.

Thanks.

datauduong avatar Jun 17 '20 07:06 datauduong

Its more than a year since this issue was opened. Is support for localhost or azure hosted mysql connection still not supported?

Searched extensions and not seeing any hits.

myusrn avatar Jul 31 '20 05:07 myusrn

Would appreciate if the devs could just shed some light if they care about such support or not. Just look at the emoji count of the first post. The community cares.

rafaribe avatar Jul 31 '20 22:07 rafaribe

i'll have faith

ramonpego avatar Aug 26 '20 10:08 ramonpego

Are there any updates on the progress?

asharovarov avatar Sep 10 '20 12:09 asharovarov

No response from devs for don't know how long... 😶

firanto avatar Sep 15 '20 21:09 firanto

We asked about that on Twitter but until now we only got a vague answer from the PM https://twitter.com/OneBitAhead/status/1307954947036717056

stefanreimers avatar Sep 21 '20 17:09 stefanreimers

Fyi, as an interim alternative i'm using azure data studio supported jupyter notebook with python kernel and the standard issue mysql pypi package. An overview can be found in this 10min walkthrough video and summarized in the following.

  1. install azure data studio
  2. azure data studio | file | new notebook
  3. <notebook>.ipynb | manage packages | add new | mysql and mysql-connector
  4. set db_host=<your_db_host>& set db_user=<your_db_user>& set db_pswd=<your_db_pswd>& set db_name=<your_db_name> . . . and for linux distro leave out set or swap with export for enabling across all processes
  5. use following code in notebook code cell or spread across many cells if you want to intermix with markdown information
import mysql.connector as mysql; 
db_host = os.environ.get('db_host'); db_user = os.environ.get('db_user'); db_pswd = os.environ.get('db_pswd'); db_name = os.environ.get('db_name')
db_conn = mysql.connect(host=db_host, user=db_user, passwd=db_pswd, database=db_name, use_pure = True)
db_conn # or print(db_conn)

db_tables = pd.read_sql_query('show tables from ' + db_name, db_conn)
db_tables # or print(db_tables)

tables = db_tables['Tables_in_' + db_name]
tables # or print(tables)
for table_name in tables: 
	output = pd.read_sql_query('describe {}'.format(table_name), db_conn)
	print('describe ' + table_name)
	print(output, '\n')

Should be clear that the python pandas package call pd.read_sql_query('<mysql statements>', db_conn) is how you execute mysql commands and view output in notebook. For some use cases this azure data studio notebook approach may be preferred given you get the benefits of being able to insert nice markdown in between statements and have output for a given run captured in a nicely formatted way for sharing.

myusrn avatar Sep 23 '20 05:09 myusrn

Yeah Microsoft what the heck mon? Where is support for the most common free RDBMS?

noahbroyles avatar Oct 15 '20 02:10 noahbroyles

I believe most want to use MariaDB ... please thumb up on MariaDB request here https://github.com/Microsoft/azuredatastudio/issues/4917

tinwinaung avatar Nov 14 '20 04:11 tinwinaung

There's no good mysql/mariadb IDE, so support for mysql/mariadb in Azure Data Studio would be much appreciated!

nmklotas avatar Nov 23 '20 11:11 nmklotas