Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [socrates] MariaDB?

Quote Reply
Re: [socrates] MariaDB? In reply to
More or less a comment for myself or maybe someone reading this.
I am about to move to another server and I still donĀ“t want to let go from LinksSQL.
It looks like MariaDB works more or less with LinksSQL.
I modified two things in MYSQL:.pm but the rest looks good for now.

Code:
-return $self->{sth}->{mysql_insertid} || $self->{sth}->{insertid};
+return $self->{sth}->{mariadb_insertid} || $self->{sth}->{insertid};

Code:
+$connect->{driver_to_connect} = 'MariaDB';
$connect->{host} ||= 'localhost';
$connect->{port} = undef if $connect->{host} eq 'localhost';#new MariaDB
$self->{driver} = $connect->{driver};
-$dsn = "DBI:$connect->{driver}:";
+$dsn = "DBI:$connect->{driver_to_connect}:";

This was a shortcut avoiding to make a MARIADB.pm file.

Regards
n||i||k||o
Subject Author Views Date
Thread MariaDB? socrates 6394 Apr 24, 2017, 9:08 PM
Thread Re: [socrates] MariaDB?
Andy 6201 Apr 24, 2017, 10:09 PM
Thread Re: [Andy] MariaDB?
socrates 6106 May 1, 2017, 9:02 PM
Post Re: [socrates] MariaDB?
Andy 6068 May 1, 2017, 10:26 PM
Thread Re: [socrates] MariaDB?
el noe 994 Mar 11, 2024, 4:11 PM
Thread Re: [el noe] MariaDB?
VishalT 979 Mar 12, 2024, 5:19 PM
Post Re: [VishalT] MariaDB?
el noe 969 Mar 13, 2024, 4:43 AM
Thread Re: [el noe] MariaDB?
Andy 929 Mar 15, 2024, 1:35 AM
Thread Re: [Andy] MariaDB?
el noe 925 Mar 15, 2024, 5:43 AM
Thread Re: [el noe] MariaDB?
Andy 918 Mar 15, 2024, 6:24 AM
Thread Re: [Andy] MariaDB?
el noe 910 Mar 15, 2024, 7:45 AM
Thread Re: [el noe] MariaDB?
Andy 907 Mar 15, 2024, 7:58 AM
Post Re: [Andy] MariaDB?
el noe 875 Mar 16, 2024, 2:34 PM