Re-install a new copy of wordpress and then put in the credentials to your database in the new install.
If you install wordpress and try to load the domain with no database attached, it will start the site creation wizard. Just enter the correct database credentials (username, database name, password, and location) and it will load for you instead of initializing a database.
If you only have the sql, you’ll need to create a new database and import the sql file into this database. the easiest way of doing that is creating the database, then in mysqladmin importing the database. (import in top row of php myadmin once you’ve selected the database on the left.)
The site won’t look good, but when you log into your dashboard, all posts will be there.
From there you can either export the posts (tools/export) or use this database and add a new theme. Photos will not be recovered for pages or posts though
Related Posts:
- Migrated to Namecheap, now Trouble with Database & wp-config [closed]
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- MySQL SELECT increment counter
- phpMyAdmin – Error > Incorrect format parameter?
- MySQL Database User: Which Privileges are needed?
- Why is my database import losing text widget data?
- Will it break my site if I delete all transient records in wp_options table?
- Please explain how WordPress works with MySQL character set and collation at a low level
- Reset Post IDs to less than 64bit integer
- WordPress database scalability from the code perspective
- Slow wp_term_relationships query
- How to move existing WordPress wp-content folder along with database to new server and new domain name?
- How to use “TRUNCATE TABLE” MySQL statement?
- Can I use MariaDB instead of MySQL in wordpress?
- Using Dynamic Data Pulled from a MySQL Table in a WordPress Page
- What are conventions about the schema of the $table_prefix
- Split WP install between 2 databases?
- Inserting Post Meta From SQL
- Migrating non-WordPress CMS to WordPress, lots of data to move — possible solutions?
- Why does dbDelta() not catch MysqlErrors?
- Is deleting orphaned wp_options entries safe?
- Is altering a default WordPress database table update safe?
- How to solve slow WordPress site caused by attachment_metadata
- Delete all post meta except featured image
- Custom DB_COLLATE (collation) value not working on fresh install?
- What causes the “max_user_connections” warning on WordPress frontend?
- what to do when your WordPress database is too large?
- Change all http to https in mysql databse?
- WooCommerce – Query for ordered products
- Large database causes slow load
- Delete duplicate rows from wordpress database where a column is duplicate in phpmyadmin
- Database slowdown after update to 3.4.1
- Query WordPress database by registered date and role
- Tons of Twitter rows in my database
- How to insert data into MySQL database from the form created in WordPress site
- WordPress site uses MyISAM, should I switch to InnoDB necessary?
- Select Multiple meta_value from WP DB; Single Query
- Which is more efficient? Using usermeta, or creating a new MySQL table?
- How do I copy a wordpress database?
- Is it possible to split database tables using HyperDB?
- What happens if I overwrite the current wp_options table with a backup from a week ago?
- WordPress mysql table double prefixes
- SQL Error wp_commentmeta – incorrect table definition
- CRUD operations using WordPress database API
- WordPress database import: Row size too large
- Advanced SELECT query with condtional statements
- Why do mass updates to post_content shows in front end, but not in edit screen?
- Handling large N data in WordPress
- How to Mirror WordPress database from Remote server to Local server
- Is MariaDB’s Aria storage engine suitable for WordPress?
- Improve performance by removing unnecessary database queries
- Redirecting to old domain after migration website
- Slow queries constantly getting stuck on WordPress database of ~100,000 posts
- A MySQL DB within a MySQL DB
- How do I query wp_options for expired transient pairs with MySQL commands?
- Switching Databases in LocalHost
- Is there a way to recover the table wp_term_relationships?
- Trouble Migrating all data blog from WordPress.com to WordPress.org
- Unable to set a default serialized array using dbdelta()
- WordPress running SQL query to update database from form
- How to fix database error duplicate entry
- How do I convert a MySQL database from utf8mb4 to utf8 encoding?
- Remove empty rows from the database
- Why this query is not showing any result on wordpresss home page?
- Best practice to limit results in get_row()?
- Why does changing Database Table Prefixes result in loss of content?
- Trouble running $wpdb->query() with last_insert_id
- Moving WordPress site to new domain – database import [duplicate]
- How to connect and insert data in database of wordpress?
- Buddypress avatar image in database [closed]
- $wpdb->get_var – What value is returned when zero records are found?
- Installing local to live WP into subdirectory
- Only allow user to access a link once a year, based on their joining date
- Counting post and changing roles in mysql database. Query not code
- MSQL database wp_postmeta has meta key tve_revision
- I imported an restore an database and It shows #1067 – Invalid default value for ‘user_registered’
- “BS_” rows in postmeta table
- How can I find user role in Mysql?
- Featured image from custom to WordPress database
- WordPress Database Query works in phpMyAdmin but not in the code
- database error WordPress move from one hosting to other
- Delete all users meta that named: user_avatar
- mySQL database size large, but tables size less
- spambot registering without providing email or password, bypassing registration process
- After renaming MySQL database, I can no longer access my Blog page
- How To connect to the same WordPress database with different database user
- Possible to restore wordpress database from mysql56 and sqlite files?
- Missing latest posts and options after DB migration via phpMyAdmin
- Create a new table on the database and save parameters from a contact form
- live site do not update after importing sql database
- Widgets with *internal* links do not display after database migration
- How do i get value from wp_postmeta?
- “MySQL server has gone away” since update to 3.8
- featured image not showing up with mysql_connect
- How to back-up a database on IIS
- Importing Concrete5 content to WordPress
- why you don’t Implement PDO for access every thing to database
- SQL Query to get post_id from wp_posts and and meta_key(s) from wp_postmeta
- Uploading to WordPress Database
- Have WordPress Use a Different Database for users