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
<?php | |
$db = new PDO('mysql:dbname=blockchain; host=localhost',"db_user","db_pass", | |
array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); |
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
SET NAMES utf8; | |
SET time_zone = '+00:00'; | |
SET NAMES utf8mb4; | |
DROP TABLE IF EXISTS `blocks`; | |
CREATE TABLE `blocks` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`author` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, | |
`data` text COLLATE utf8mb4_unicode_ci NOT NULL, |