Questions about sqlite

Source: Internet
Author: User
The sqlite_open function automatically creates a database file without a suffix. Is there any relationship with the SQLITE database file of DB3 generated by my management tool? ------ Solution ------------------ suffix. db3 indicates that it was created by sqlite3. Therefore, you need to load php_sqlite3 extension sqlite3 and sqlite (generally refer to the issue of s about sqlite.
The sqlite_open function automatically creates a database file without a suffix. Is there any relationship with the SQLITE database file of DB3 generated by my management tool?

------ Solution --------------------
Suffix. db3 indicates that it was created by sqlite3.
So you need to load the php_sqlite3 extension
Sqlite3 and sqlite (usually sqlite2) are incompatible because the database is completely different.
To avoid confusion, php_sqlite3 extension of php5.3 does not provide discrete functions and must be used together with php_pdo_sqlite extension.

The sqlite database file does not have a default suffix, so you must write all the names in use.

You appear
Warning: sqlite_open () [function. sqlite-open]: file is encrypted or is not a database in D: \ xampp \ htdocs \ doctrine2 \ index. php on line 2
Indicates that your database file is not of SQLite2

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.