Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Article needed: using MySQL with Perl #135

Open
dnmfarrell opened this issue Jul 25, 2018 · 7 comments
Open

Article needed: using MySQL with Perl #135

dnmfarrell opened this issue Jul 25, 2018 · 7 comments
Labels
community: help wanted popular-article Part of the popular Perl articles project

Comments

@dnmfarrell
Copy link
Contributor

We need a MySQL-focused tutorial on using MySQL with Perl and DBI. The article should probably include:

  • links to how to install/setup MySQL Server
  • Installing DBI and DBD::MySQL
  • connecting to the database
  • executing queries with "do"
  • how to read data from query results

We already have:
https://www.perl.com/pub/1999/10/DBI.html/ (one of our most popular articles)
https://www.perl.com/pub/2003/10/23/databases.html/
https://www.perl.com/pub/2002/11/27/classdbi.html/

@dnmfarrell dnmfarrell added the popular-article Part of the popular Perl articles project label Jul 25, 2018
@dnmfarrell dnmfarrell added community: hacktoberfest Good issues for drive-by contributions during Hacktoberfest and removed community: hacktoberfest Good issues for drive-by contributions during Hacktoberfest labels Sep 30, 2018
@jacoby
Copy link
Contributor

jacoby commented Oct 9, 2018

I think this can easily be split up into two articles:

  • Perl, DBI and MySQL
  • Perl, DBIx::Class and MySQL

I can do the first with a lot more fluidity than the second.

@dnmfarrell
Copy link
Contributor Author

I agree, if you take the first, I can take the second as a "part II".

In part 1 you might want to mention mariadb as that seems to be the mysql variant of choice on linux. One thing that trips folks up with DBD::mysql more than anything are the database header file dependencies. It's probably enough to mention the ubuntu and dnf/yum package names (libmariadbclient-dev and mariadb-devel I think). Maybe MacOS too if you feel like it.

@dnmfarrell dnmfarrell moved this from Proposed to Assigned in Popular Perl articles we need Oct 9, 2018
@jacoby
Copy link
Contributor

jacoby commented Oct 9, 2018 via email

@jacoby
Copy link
Contributor

jacoby commented Oct 9, 2018 via email

@welleozean77
Copy link

Hi Jacoby,

I can help out with testing on macOS, if you need. I work with MySQL on a Mac.

@jacoby
Copy link
Contributor

jacoby commented Oct 27, 2018

@welleozean77 , I have a question. It's Perl -> DBI -> DBD::mysql -> MySQL server, and you need to have the developer libs to give DBD::mysql something to work with. But I don't run Mac, so I don't know how package management works on Mac for that. Anything you could add would be appreciated.

@welleozean77
Copy link

welleozean77 commented Oct 31, 2018 via email

@dnmfarrell dnmfarrell removed community: hacktoberfest Good issues for drive-by contributions during Hacktoberfest labels Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community: help wanted popular-article Part of the popular Perl articles project
Projects
Development

No branches or pull requests

3 participants