Skip to content

Commit d12bac4

Browse files
committed
Improve MySQL installation process
I fixed this section for several reasons: 1) The previous example could install the dynamic library but the DBIish example also requires MySQL server. 2) The MySQL APT Repository officially supports debian stretch (also it supports jessie and wheezy). 3) Even if an user use an older distribution, he/she can install the current version of MySQL easily. (and sorry for my confusing suggestion: #1993 )
1 parent 39241d1 commit d12bac4

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

doc/Language/nativecall.pod6

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -802,27 +802,26 @@ The PostgreSQL examples in L<DBIish|https://github.com/perl6/DBIish/blob/master/
802802
803803
=head2 MySQL
804804
805+
B<NOTE:> Please bear in mind that, under the hood, Debian has substituted MySQL with MariaDB since the Stretch version, so if you want to install MySQL, use L<MySQL APT repository|https://dev.mysql.com/downloads/repo/apt/> instead of the default repository.
806+
805807
You'll need to install MySQL server locally; on Debian-esque systems
806808
it can be installed with something like:
807809
808810
=for code :lang<shell>
809-
sudo apt-get install mysql-server
811+
wget https://dev.mysql.com/get/mysql-apt-config_0.8.10-1_all.deb
812+
sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb # Don't forget to select 5.6.x
813+
sudo apt-get update
814+
sudo apt-get install mysql-community-server -y
815+
sudo apt-get install libmysqlclient18 -y
810816
811817
Prepare your system along these lines before trying out the examples:
812818
813819
=for code :lang<shell>
814820
$ mysql -u root -p
815-
UPDATE mysql.user SET password=password('sa') WHERE user = 'root';
821+
SET PASSWROD = PASSWORD('sa');
822+
DROP DATABASE test;
816823
CREATE DATABASE test;
817824
818-
Please bear in mind that, under the hood, Debian has substituted MySQL with MariaDB since the Stretch version, so if you want to install the dynamic library you will have to write:
819-
820-
=for code :lang<shell>
821-
$ wget http://ftp.br.debian.org/debian/pool/main/m/mysql-5.5/libmysqlclient18_5.5.58-0+deb8u1_amd64.deb
822-
$ sudo dpkg -i libmysqlclient18_5.5.58-0+deb8u1_amd64.deb
823-
824-
(Use the closest mirror instead of C<br> if you want).
825-
826825
=head2 Microsoft Windows
827826
828827
Here is an example of a Windows API call:

0 commit comments

Comments
 (0)