Created
August 24, 2010 11:13
-
-
Save dynax60/547379 to your computer and use it in GitHub Desktop.
Mysql client charset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use DBI; | |
our $dbh = DBI->connect("dbi:mysql:dbname=mydb;host=localhost", | |
'user', 'pass', | |
{ PrintError => 0, RaiseError => 1, mysql_enable_utf8 => 1 }); | |
for (@{ $dbh->selectall_arrayref(q{ | |
SHOW VARIABLES LIKE 'character\_set\_%' }) } ) { | |
print "$_->[0] = $_->[1]\n" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment