May 22, 2014 · West Coast Media Solutions Inc. · 12 min read
The pages are usually safe; WordPress cannot reach its database. Ask what changed, compare the database details in wp-config.php with the hosting control panel, ask the host about the database server, and back up the database itself.
One line on a white page
A garden centre's owner opens the website on a Saturday morning in May, and all it shows is one line on a white page: Error establishing a database connection. No logo, no menu, no hours.
The same line appears on every page, for every visitor, and on the admin login too, so there is nothing to click.
It looks as if the whole site has gone. It has not. The pages are almost certainly intact; WordPress simply cannot reach the place where they are kept.
Where a WordPress site keeps its pages
A WordPress site has two parts. The files hold the software, the theme and the uploaded images. The database holds everything typed in: pages, posts, menus, settings, users and comments.
Every time someone visits, WordPress connects to the database, fetches the page and builds it on the spot. If it cannot connect, it has nothing to show, and it says so in that one line.
At many hosts the database runs on a separate server from the website's files. The site's own files can be perfectly healthy while the server holding its content is unavailable.
The usual causes
Changed login details, when the database password was changed in the hosting control panel but not in WordPress's settings file.
A busy database server, shared with many other sites and refusing new connections at peak times.
A server that is down, for maintenance or after a fault at the host.
A full account, where the database or the disk space has reached its limit.
Damaged tables, after a crash or an interrupted update.
A move to a new server, with the old database address still in the settings.
Each needs a different fix, so identify which one you are facing before anyone starts changing things.
Telling them apart
Ask what changed. A password reset, a move, an update or a new plugin in the last day points straight at the cause. A failure with no change on your side points to the host.
Watch whether it comes and goes. An error that appears for a few minutes at a time, especially at busy hours, suggests an overloaded database server; one that stays put suggests wrong details or a server that is down.
Try the admin address, the site's address followed by wp-admin. A message there about tables needing repair, instead of the connection error, means the database is reachable but damaged.
If other sites on the same hosting account show the same error, the problem almost certainly lies with the host's server rather than with one site.
What to ask the host
Hosts answer faster when the question is specific. Give the domain, the exact error, the time it started, and whether it comes and goes.
Then ask whether the database server is running, whether the account has reached a connection, size or disk limit, whether there was maintenance or a move, and whether the database address in the settings is still correct.
If the host finds damaged tables or a lost database, ask what backups they hold, from which dates, and how long a restore takes.
A worked example
A hydrovac excavation company in Kamloops runs a WordPress site with its services, photographs of jobs and a quote request form that contractors use from the road.
After the Heartbleed vulnerability in April, the office manager logged into the hosting control panel and changed every password she could find, as the host had advised.
One of them belonged to the database user. The site went down within the minute, and a contractor phoned to say so before anyone in the office noticed.
The company's developer compared the details in WordPress's settings file with those in the control panel, found the old password still in the file, and updated it. The site came straight back.
The developer then noted where the database password lives, so the next round of password changes includes the settings file, and set up a nightly database backup alongside the files.
The settings file
WordPress keeps four database details in a file called wp-config.php: the database name, the user, the password, and the database server's address, often localhost but at some hosts a separate name.
If any of the four is wrong, the connection fails with that same one-line error. Whoever changes a database password or moves the site has to update this file too.
The file also holds keys that protect logins, so it should never be sent by email or left as a copy in a public folder.
The database belongs in every backup
Many sites are backed up by copying their files, which is only half of a WordPress site. The pages, posts and settings are in the database, and a file copy does not include it.
A complete backup includes a database export taken at the same time as the files, kept somewhere other than the hosting account, and tested now and then by restoring it to a copy of the site.
Ask the host whether their backups include databases, how many days they keep, and whether you can download them. Treat the host's backups as a second line, not the only one.
While the site is down
Customers still need the phone number and the hours. Both should appear on the business's Google listing and social pages, which do not depend on the website.
A short post on the business's Facebook page saying the website is down, and how to reach you meanwhile, answers the question before customers have to call to ask it.
The counter-case
Sometimes the error is brief and entirely the host's: a database server restarted for maintenance and back within minutes. Waiting, and checking the host's status page, is the right response.
And a site owner who never touches passwords or plugins may go years without seeing it.
But when it does appear, the answer depends on the settings file, the host and the backup. Knowing who holds each before the morning it happens is what keeps the outage short.
When the error appears
Note the time and the exact message.
Ask what changed in the last day.
Watch whether the error comes and goes.
Try the admin address for a repair message.
Compare the settings file with the control panel.
Contact the host with specific questions.
Confirm the database is in every backup.
Step two solves more of these than any other. Many connection errors follow a deliberate change, such as a new password or a move, and whoever made it often knows the fix.
Almost certainly not. The error means WordPress cannot connect to the database that holds the pages, and the content is usually intact once the connection is restored.
What usually causes the error?
A changed database password, a busy or stopped database server, a full account, damaged tables, or a move to a new server with old details left in place.
How can I tell which cause it is?
Ask what changed recently, watch whether the error comes and goes, and try the admin address for a message about repairing tables.
What is wp-config.php?
The WordPress settings file holding the database name, user, password and server address. If any of the four is wrong, the site shows the connection error.
What should I ask the host?
Whether the database server is running, whether the account hit a connection or size limit, whether there was maintenance or a move, and what backups exist.
Do file backups protect a WordPress site?
Only partly. The content itself sits in the database, so every backup needs a database export taken alongside the files and stored away from the server.
West Coast Media Solutions Inc. provides web design, web development, hosting, digital marketing, and business consulting to organisations across Canada, drawing on more than twenty-five years in the field.
Error establishing a database connection?
Send us your site's address and when it started, and we will work out the cause with your host and check your backups.
West Coast Media Solutions Inc. ("Company," "we," "us," or "our") respects your privacy and is committed to protecting the personal information you share with us. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you visit our website, including any subdomains, and any related services, applications, or tools where this policy is referenced.
2. Information We Collect
We may collect personal information that you voluntarily provide when you use our contact forms, subscribe to newsletters, request a quote, or otherwise interact with our website. This may include your name, email address, phone number, company name, and any additional details you choose to share in message fields. We also automatically collect certain technical data when you visit our website, including your IP address, browser type, operating system, referring URLs, pages viewed, time spent on pages, and access timestamps.
3. How We Use Your Information
We use the information we collect to respond to your inquiries and provide requested services; to personalize and improve your experience on our website; to send you project updates, newsletters, and promotional communications (which you may opt out of at any time); to analyze usage trends and improve website performance; to detect, prevent, and address fraud, security issues, and technical problems; and to comply with applicable legal obligations and enforce our terms.
4. Cookies and Tracking Technologies
Our website uses cookies and similar tracking technologies to enhance your browsing experience, remember your preferences, and gather analytical data about how visitors use our site. You can control cookie preferences through your browser settings. For detailed information about our use of cookies, please see our Cookie Policy.
5. Third-Party Services
We may use third-party analytics services such as Matomo or Google Analytics to help us understand how visitors interact with our website. These services may collect information sent by your browser as part of a web page request, including cookies and your IP address. We may also use third-party services for email delivery, form processing, and content delivery networks. These providers have their own privacy policies governing the use of your information.
6. Data Sharing and Disclosure
We do not sell, trade, or rent your personal information to third parties. We may share your information with trusted service providers who assist us in operating our website and conducting our business, provided they agree to keep this information confidential. We may also disclose information when required by law, to protect our rights, to enforce our policies, or to respond to legal process.
7. Data Security
We implement appropriate technical and organizational measures to protect the personal information we collect and store. These include encrypted connections (SSL/TLS), secure server infrastructure, access controls, and regular security assessments. However, no method of transmission over the internet or electronic storage is 100% secure, and we cannot guarantee absolute security of your data.
8. Data Retention
We retain your personal information only for as long as necessary to fulfill the purposes for which it was collected, to comply with legal obligations, resolve disputes, and enforce our agreements. Contact form submissions and inquiry records are retained for a reasonable period based on the nature of the inquiry and applicable retention requirements. You may request deletion of your data at any time.
9. Your Rights
Depending on your jurisdiction, you may have the right to access, correct, update, or delete the personal information we hold about you. You may also have the right to object to or restrict certain processing of your data, to data portability, and to withdraw consent where processing is based on consent. To exercise any of these rights, please contact us using the information provided below. We will respond to your request within the timeframes required by applicable law.
10. Children's Privacy
Our website and services are not intended for individuals under the age of 16. We do not knowingly collect personal information from children. If we become aware that we have inadvertently collected personal data from a child under 16, we will take steps to delete such information promptly. If you believe we may have collected information from a child, please contact us immediately.
11. International Data Transfers
Your information may be transferred to and maintained on servers located outside your province, state, or country where data protection laws may differ from those in your jurisdiction. By providing your information, you consent to such transfer. We take steps to ensure that your data is treated securely and in accordance with this Privacy Policy regardless of where it is processed.
12. Changes to This Policy
We reserve the right to update or modify this Privacy Policy at any time. Any changes will be posted on this page with an updated effective date. We encourage you to review this policy periodically to stay informed about how we are protecting your information. Your continued use of the website after any changes constitutes acceptance of the revised policy.
Effective Date: April 2026 | West Coast Media Solutions Inc., Vancouver, BC, Canada
Cookie Policy
1. What Are Cookies
Cookies are small text files that are placed on your computer, smartphone, or other device when you visit a website. They are widely used to make websites work more efficiently, to provide a better browsing experience, and to supply reporting information to website operators. Cookies are stored in your browser and allow the website or a third-party service to recognize you and make your next visit easier.
2. How We Use Cookies
West Coast Media Solutions Inc. uses cookies for several purposes: to ensure the proper functioning and security of our website; to remember your preferences and settings; to understand how visitors navigate and interact with our pages; to analyze website traffic and measure the effectiveness of our content; and to deliver relevant information based on your browsing history and interests.
3. Types of Cookies We Use
Essential Cookies: These cookies are strictly necessary for the website to function. They enable core features such as page navigation, secure areas, and form submissions. The website cannot function properly without these cookies, and they cannot be disabled.
Analytics Cookies: These cookies help us understand how visitors interact with our website by collecting information about pages visited, time spent on the site, and any error messages encountered. All information collected by these cookies is aggregated and therefore anonymous.
Functional Cookies: These cookies enable the website to remember choices you make (such as your preferred language or region) and provide enhanced, more personalized features. They may also be used to provide services you have requested, such as watching a video or commenting on a blog.
Performance Cookies: These cookies collect information about how you use our website, such as which pages are most popular and how visitors move around the site. This helps us improve the way our website works and identify any technical issues.
4. Third-Party Cookies
In addition to our own cookies, we may also use various third-party cookies to report usage statistics of the website and deliver content and advertisements. Third-party services that may place cookies through our site include analytics providers, advertising networks, and social media platforms. These third parties have their own cookie and privacy policies that govern their use of your data.
5. Cookie Duration
Session Cookies: These cookies are temporary and are deleted from your device when you close your browser. They are used to maintain your session as you navigate between pages.
Persistent Cookies: These cookies remain on your device for a set period of time or until you delete them. They are used to remember your preferences and actions across multiple visits to our website.
6. Managing Your Cookie Preferences
Most web browsers allow you to control cookies through their settings. You can configure your browser to accept all cookies, reject all cookies, or notify you when a cookie is set. Please note that disabling or blocking certain cookies may affect the functionality of our website and your ability to access certain features. Browser help sections and external resources provide detailed instructions on managing cookies for all major browsers.
7. Do Not Track Signals
Some browsers include a "Do Not Track" (DNT) feature that signals to websites that you do not want your activity tracked. Because there is no universally accepted standard for how to respond to DNT signals, our website does not currently respond to DNT signals. However, you can control tracking through the cookie management options described above.
8. Consent
By continuing to use our website, you consent to the use of cookies as described in this Cookie Policy. If you do not agree to our use of cookies, you should adjust your browser settings accordingly or refrain from using our website. For users in jurisdictions that require explicit consent (such as the EU/EEA), we will present a cookie consent mechanism before non-essential cookies are placed.
9. Impact on Website Functionality
If you choose to disable cookies, some features of our website may not function as intended. This could include the inability to log in, loss of personalization, reduced analytics capabilities, and degraded overall experience. Essential cookies cannot be disabled as they are required for the basic operation of the website.
10. Updates to This Cookie Policy
We may update this Cookie Policy from time to time to reflect changes in technology, legislation, our business operations, or cookie practices. Any updates will be posted on this page with a revised effective date. We encourage you to check this page periodically to stay informed about our use of cookies.
Effective Date: April 2026 | West Coast Media Solutions Inc., Vancouver, BC, Canada
Terms of Use
1. Acceptance of Terms
By accessing and using the website operated by West Coast Media Solutions Inc. ("Company," "we," "us," or "our"), located at westcoastmediasolutions.com (the "Website"), you acknowledge that you have read, understood, and agree to be bound by these Terms of Use. If you do not agree to these Terms, you must discontinue use of this Website immediately. We reserve the right to modify these Terms at any time, and such modifications shall be effective immediately upon posting.
2. Description of Services
West Coast Media Solutions Inc. provides digital marketing and web design services including, but not limited to, search engine optimization, search engine marketing, social media marketing, rich media advertising, programmatic media buying, digital consulting, and custom website design and development. The information presented on this Website is intended for general informational purposes and does not constitute a binding offer, contract, or guarantee of results.
3. Eligibility
You must be at least 18 years of age, or the age of majority in your jurisdiction (whichever is greater), to use this Website or engage our services. By using this Website, you represent and warrant that you meet this eligibility requirement and that you have the legal capacity to enter into a binding agreement.
4. Intellectual Property Rights
All content, materials, features, and functionality on this Website, including but not limited to text, graphics, logos, icons, images, audio clips, video clips, data compilations, software, and the design, selection, and arrangement thereof, are the exclusive property of West Coast Media Solutions Inc. or its content suppliers and are protected by Canadian and international copyright, trademark, patent, trade secret, and other intellectual property laws.
5. User Conduct
When using this Website, you agree not to use the Website for any unlawful purpose; attempt to gain unauthorized access to any portion of the Website or any systems connected to it; interfere with or disrupt the operation of the Website; use automated means to access or copy content without our express written consent; collect personal information of other users; impersonate any person or entity; or engage in any activity that could damage or impair the Website.
6. Submissions and Contact Forms
Any information or materials you submit through the Website's contact forms, email, or other communication channels shall be treated as non-confidential and non-proprietary unless otherwise specified in a separate written agreement. By submitting any such information, you grant the Company a non-exclusive, royalty-free, perpetual right to use, reproduce, modify, and distribute such content for any lawful business purpose.
7. Third-Party Links
This Website may contain links to third-party websites that are not owned or controlled by West Coast Media Solutions Inc. We have no control over, and assume no responsibility for, the content, privacy policies, or practices of any third-party websites. Your use of third-party websites is at your own risk, and we encourage you to read the terms and privacy policies of any websites you visit.
8. Disclaimer of Warranties
THIS WEBSITE AND ALL CONTENT, MATERIALS, INFORMATION, AND SERVICES PROVIDED ON OR THROUGH THIS WEBSITE ARE PROVIDED ON AN "AS IS" AND "AS AVAILABLE" BASIS WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED. TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, THE COMPANY DISCLAIMS ALL WARRANTIES, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE, AND NON-INFRINGEMENT.
9. Limitation of Liability
TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, WEST COAST MEDIA SOLUTIONS INC., ITS DIRECTORS, OFFICERS, EMPLOYEES, AGENTS, PARTNERS, SUPPLIERS, OR AFFILIATES SHALL NOT BE LIABLE FOR ANY INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, OR PUNITIVE DAMAGES ARISING FROM OR RELATED TO YOUR USE OF THE WEBSITE, WHETHER BASED ON WARRANTY, CONTRACT, TORT, OR ANY OTHER LEGAL THEORY.
10. Indemnification
You agree to defend, indemnify, and hold harmless West Coast Media Solutions Inc., its directors, officers, employees, agents, successors, and assigns from any claims, damages, obligations, losses, liabilities, costs, and expenses arising from your use of the Website, your violation of these Terms, or your violation of any third-party right.
11. Governing Law and Jurisdiction
These Terms shall be governed by and construed in accordance with the laws of the Province of British Columbia and the federal laws of Canada applicable therein. Any legal action arising from these Terms shall be instituted exclusively in the courts of British Columbia, Canada. You irrevocably waive any objections to jurisdiction and venue in such courts.
12. Changes to These Terms
We reserve the right to update or modify these Terms of Use at any time. Changes will be posted on this page with an updated effective date. Your continued use of the Website following the posting of revised Terms constitutes your acceptance of such changes.
Effective Date: April 2026 | West Coast Media Solutions Inc., Vancouver, BC, Canada
Legal Terms
1. Company Information
This website is owned and operated by West Coast Media Solutions Inc., a corporation incorporated federally under the Canada Business Corporations Act (corporation number 641461-3) and extraprovincially registered in British Columbia (registration number A0143178). Our registered office is located at 2400 - 1111 West Georgia Street, Vancouver, BC V6E 4S4, Canada. Telephone: (800) 959-4590.
2. Responsible for Content
The content of this website is provided by West Coast Media Solutions Inc. The person responsible for the content within the meaning of applicable legislation is the managing director of West Coast Media Solutions Inc., contactable at the registered office address listed above. All editorial content, service descriptions, and portfolio materials are reviewed and approved prior to publication.
3. Content Accuracy and Disclaimer
The contents of this website have been prepared with the utmost care. However, West Coast Media Solutions Inc. cannot guarantee the accuracy, completeness, or timeliness of the content provided. All information is subject to change without notice. We are not obligated to monitor transmitted or stored third-party information, nor to investigate circumstances that indicate unlawful activity. If we become aware of any such infringements, we will remove the content immediately.
4. External Links Disclaimer
Our website contains links to external websites of third parties over whose content we have no influence. We cannot assume any liability for third-party content. The respective provider or operator of the linked pages is always responsible for the content of those pages. Linked pages were checked for possible legal violations at the time of linking. Illegal content was not recognizable at the time of linking. Permanent monitoring of linked pages is not reasonable without concrete evidence of a violation.
5. Copyright and Intellectual Property
The content and works created by the operators of this website are subject to Canadian copyright law. Reproduction, editing, distribution, and any kind of exploitation outside the limits of copyright law require the written consent of the respective author or creator. Downloads and copies of this site are only permitted for private, non-commercial use. Third-party content is identified as such. Should you become aware of a copyright infringement, please notify us accordingly.
6. Trademark Notice
All trademarks, service marks, trade names, logos, and product names appearing on this website are the property of their respective owners. West Coast Media Solutions Inc. and the WCMS logo are trademarks of West Coast Media Solutions Inc. Reference to any products, services, or information by trade name, trademark, or otherwise does not constitute or imply endorsement, sponsorship, or recommendation by the company.
7. Professional Liability
Our liability for services rendered is governed by the terms of the individual service agreement executed between the Company and the client. Insurance requirements, where applicable to a particular engagement, are addressed in that agreement.
8. Dispute Resolution
West Coast Media Solutions Inc. endeavours to resolve any disputes arising from or in connection with our services amicably and directly with our clients. If a dispute cannot be resolved informally, it shall be governed by the laws of the Province of British Columbia and the federal laws of Canada applicable therein. The courts of British Columbia shall have exclusive jurisdiction over any dispute arising from or related to this website or the services provided.
9. Regulatory Compliance
West Coast Media Solutions Inc. operates in compliance with all applicable federal, provincial, and municipal laws and regulations, including but not limited to Canada's Anti-Spam Legislation (CASL), the Personal Information Protection and Electronic Documents Act (PIPEDA), the British Columbia Personal Information Protection Act (PIPA), the Competition Act, and all applicable advertising standards as set forth by Ad Standards Canada.
10. Limitation of Liability
To the fullest extent permitted by applicable law, West Coast Media Solutions Inc. and its officers, directors, employees, agents, and affiliates shall not be liable for any direct, indirect, incidental, special, consequential, or exemplary damages arising from or related to your use of the website, including but not limited to loss of data, loss of income, or loss of business opportunity, even if we have been advised of the possibility of such damages.
11. Severability
If any provision of these Legal Terms is held to be unenforceable or invalid by a court of competent jurisdiction, such provision shall be modified to accomplish the objectives of the original provision to the fullest extent permitted by law, and the remaining provisions shall continue in full force and effect.
12. Contact
If you have any questions regarding these Legal Terms, please contact West Coast Media Solutions Inc. at 2400 - 1111 West Georgia Street, Vancouver, BC V6E 4S4, Canada. Telephone: (800) 959-4590.
Last updated: April 2026
Accessibility Statement
1. Our Commitment
West Coast Media Solutions Inc. is committed to ensuring digital accessibility for people of all abilities. We continually work to improve the user experience for everyone who visits our website and strive to conform to applicable accessibility standards and guidelines. We believe the internet should be available and accessible to anyone, and we are committed to providing a website that is accessible to the widest possible audience.
2. Standards and Guidelines
We aim to conform to the Web Content Accessibility Guidelines (WCAG) 2.1 at the AA level, published by the World Wide Web Consortium (W3C). These guidelines provide a framework for making web content more accessible to people with disabilities, including visual, auditory, physical, speech, cognitive, language, learning, and neurological disabilities. Conformance with these guidelines also helps make web content more usable for all users.
3. Measures Taken
To ensure accessibility, we have implemented the following measures across our website: semantic HTML5 markup for proper document structure and screen reader compatibility; descriptive alt text for all meaningful images; sufficient color contrast ratios between text and background elements; keyboard-navigable interface elements including menus, links, buttons, and form fields; clear and consistent navigation structure throughout all pages; responsive design that adapts to different screen sizes, devices, and zoom levels; and descriptive link text that provides context about link destinations.
4. Assistive Technology Compatibility
Our website is designed to be compatible with commonly used assistive technologies, including screen readers such as JAWS, NVDA and VoiceOver, screen magnification software, speech recognition software, and alternative input devices. We build to accessibility standards and use automated testing tools during development. Where a specific assistive technology presents a barrier, we welcome reports so we can address it.
5. Multimedia Content
We strive to ensure that multimedia content on our website is accessible. Where video or audio content is provided, we aim to include captions, transcripts, or audio descriptions as appropriate. Images used for decorative purposes are marked accordingly so they do not interfere with screen reader navigation.
6. Document Accessibility
We are working to ensure that downloadable documents and files published on our website are accessible. Where possible, we provide content in accessible HTML format in addition to or instead of PDF format. For PDF documents, we strive to ensure they are properly tagged and structured for assistive technology access.
7. Third-Party Content
Our website may include content or functionality provided by third-party services, including embedded videos, social media feeds, analytics tools, and web fonts. While we make every effort to select accessible third-party solutions, we cannot guarantee that all third-party content meets accessibility standards. We welcome feedback on any third-party content that may present accessibility barriers.
8. Ongoing Efforts
Accessibility is an ongoing effort. We regularly review our website for accessibility issues, train our content team on accessibility best practices, incorporate accessibility testing into our development workflow, conduct periodic audits using both automated tools and manual testing, and monitor feedback from users to identify areas for improvement. We are committed to addressing any issues promptly and transparently.
9. Known Limitations
Despite our best efforts, some content on our website may not yet be fully accessible. We are aware that older content, certain complex interactive elements, and some third-party integrations may present challenges. We are actively working to address these limitations and improve accessibility across all areas of our website. If you encounter a specific barrier, please let us know so we can prioritize a solution.
10. Feedback and Contact
We welcome your feedback on the accessibility of our website. If you encounter accessibility barriers, have suggestions for improvement, or need assistance accessing any content or functionality, please contact us. You can reach West Coast Media Solutions Inc. at 2400 - 1111 West Georgia Street, Vancouver, BC V6E 4S4, Canada, or by telephone at (800) 959-4590. We aim to respond to accessibility feedback within 5 business days and to resolve reported issues as quickly as possible.
Last updated: April 2026 | West Coast Media Solutions Inc., Vancouver, BC, Canada