An introductory tutorial to building user login & registration forms with PHP's PDO object. utf8_unicode_ci NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `username` The first order of business is to connect to MySQL using the PDO object..