Conary install phpmyadmin
To do so we will run the script shown. Once the LAMP stack is installed and the database secured, proceed and install phpmyadmin as follows.
Along the way, you will be prompted to select the web server. When the database is configured, a user called phpmyadmin is created.
The next step prompts you to provide a password for the phpmyadmin user. NOTE: To have all the privileges on the databases and tables, you need to log in as the root user. At this point, however, you cannot log in as the root user. If you followed the prerequisite LAMP stack tutorial , several of these modules will have been installed along with the php package. Run the following command to install these packages onto your system. Please note, though, that the installation process requires you to make some choices to configure phpMyAdmin correctly.
Here are the options you should choose when prompted in order to configure your installation correctly:. As of this writing, enabling this component will trigger an error when you attempt to set a password for the phpmyadmin user:.
To resolve this, select the abort option to stop the installation process. Then, open up your MySQL prompt:. Or, if you enabled password authentication for the root MySQL user, run this command and then enter your password when prompted:. From the prompt, run the following command to disable the Validate Password component.
Once phpMyAdmin is installed, you can open the MySQL prompt once again with sudo mysql or mysql -u root -p and then run the following command to re-enable the Validate Password component:. To finish configuring Apache and PHP to work with phpMyAdmin, the only remaining task in this section of the tutorial is to is explicitly enable the mbstring PHP extension, which you can do by typing:.
However, before you can log in and begin interacting with your MySQL databases, you will need to ensure that your MySQL users have the privileges required for interacting with the program. When you installed phpMyAdmin onto your server, it automatically created a database user called phpmyadmin which performs certain underlying processes for the program.
This allows for some greater security and usability in many cases, but it can also complicate things when you need to allow an external program — like phpMyAdmin — to access the user.
To do this, open up the MySQL prompt from your terminal:. Next, check which authentication method each of your MySQL user accounts use with the following command:. Be sure to change password to a strong password of your choosing:.
You can see from this output that the root user will authenticate using a password. The prerequisites are the most important part, which needs to be taken care of before actually using the phpMyAdmin tool.
Keeping this in check leads to the uninterrupted proper functioning of the utilization of this tool, as the minor glitches can be discouraging and tiresome in the hour of need. There are two ways for installing the phpMyAdmin tool, and both of them need to have the database installed in the computer being installing this tool. Below are the few other prerequisites with respect to the installation processes used.
The Installation process and steps are different for the two different techniques of setting up a phpMyAdmin application on the computer. Below are the steps for working on the same. Step 2: The phpMyAdmin application website opens up Fig. Clicking either option will prompt a pop-up window. Click the download directly link. It's in the upper-right side of the pop-up window.
This green button is near the top of the page. WAMP will begin downloading onto your computer. The download will take several minutes to complete. Install WAMP. Click Install. Wait for WAMP to finish installing. This will take a few minutes. Choose a browser when prompted. For example: to select Chrome, you would find and click on the Google folder on the left side of File Explorer, then double-click the Chrome folder and select the Chrome icon. If you would prefer just to use Internet Explorer, click No instead.
Select a different text editor if needed. If you don't want to use Notepad as your server's text editor, click Yes when prompted, then find the EXE file for the text editor that you want to use, select it, and click Open.
Click No if you want to keep Notepad as the default text editor. Finish the setup. WAMP is now installed on your computer. Open WAMP. Double-click the pink "Wampserver" icon on your desktop, then click Yes when prompted. This will prompt your server to start running. Click the WAMP icon in the system tray. Clicking this will prompt a pop-up menu. You may first have to click the upward-facing arrow in the toolbar to see the WAMP icon.
Click phpMyAdmin. It should be near the top of the pop-up menu. As long as your server is properly installed, doing so will open the phpMyAdmin login page in your preferred browser.
There is error in the database connection. Try to solve that first. Check your connection code and try again. Also check whether the localhost ID is correct.
0コメント