Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Matematica Beginner/Student and Mysql

  • To: mathgroup at smc.vnet.net
  • Subject: [mg122452] Re: Matematica Beginner/Student and Mysql
  • From: ejules <weberejules at gmail.com>
  • Date: Sat, 29 Oct 2011 07:09:13 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <j8dtds$kff$1@smc.vnet.net>

On Oct 28, 11:42 am, ejules <webereju... at gmail.com> wrote:
> Hello Everybody.. I hope this is the right place to post...
>
> I'm student and currently trying to connect a mysql database running
> locally on 127.0.0.1:3306 localhost, including the database
> Testdatabase with table Testtable.
> I try now to connect with Mathematica:
>
> Needs["DatabaseLink`"];
> SqlConnection[
>  JDBC["MySQL(Connector/J)", "localhost:3306/testdatabase"],
>  "Name" -> "TestDB", "Username" -> "root", "Password" -> ""]
> conn1 = OpensqlConnection["TestDB"]
> SQLTableNames[conn1]
>
> Unfortunately my Ouptut is only a echo of what i wrote but not the
> result i'm looking for
> afterwards i would like to send standard sql queries to retrieve
> data...
> Anyone could help me? Step by step? I never used Mathematica before,
> but as my datasets are pretty large and manipulating data in tables is
> very convienient, i would really appreciate any help..
>
> Thank you! ejules

Thank you a lot for the help, Correct syntax is:
Needs["DatabaseLink`"]
conn1 = OpenSQLConnection[JDBC["mysql", "localhost:3306/
testdatabase"], Username -> "root", Password -> ""];
SQLTableNames[conn1]



  • Prev by Date: Re: Strings with different Styles in a Grid
  • Next by Date: Re: Multiple integration: bug?
  • Previous by thread: Re: Matematica Beginner/Student and Mysql
  • Next by thread: Re: Matematica Beginner/Student and Mysql