摘要: <?php$conn = mysqli_connect('localhost', 'root', '密码');if(! $conn ){ die('Could not connect: ' . mysqli_error());}//echo '数据库连接成功!'; // 设置编码,防止中文乱码mys 阅读全文
posted @ 2019-12-09 14:08 collin-liu 阅读(5379) 评论(0) 推荐(0) 编辑
摘要: 数据库创建表时显示no database selected No database selected是因为你没有选择数据库在MySQL中必须要先选择数据库 使用Use [DBName]来选择当前操作的数据库如果你是用的MySQLQueryBrowser,就在右边的数据库列表中双击你要使用的数据库就可 阅读全文
posted @ 2019-12-09 14:04 collin-liu 阅读(3611) 评论(0) 推荐(0) 编辑
摘要: MYSQL报错:#1089 - Incorrect prefix key; the used key part isn't a string, the used length is longer than the key part, or the storage engine doesn't sup 阅读全文
posted @ 2019-12-09 11:44 collin-liu 阅读(3611) 评论(0) 推荐(0) 编辑