Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The users I created, pma, and the other one “GRANT ALL PRIVILEGES ON . TO ‘sammy’@‘localhost’ IDENTIFIED BY ‘password’ WITH GRANT OPTION;” don’t allow me to create new databases inside phpmyadmin.
I tried to add a user with database from phpmyadmin, then that database page allowed me to create new databases.
Is it a problem with phpmyadmin caching or something?
Greetings, excellent tutorial … Follow this installation and configuration step by step and at the end, when accessing the login screen of phpMyAdmin from my web browser, the style of the phpmyadmin homepage is not loaded. The source code and a series of parameters and functions appear in plain text.
Do you have any idea how to solve that?
@mdrake Could you update the tutorial to use latest 5.0 version or latest 4.9 security version ?
Thank you :)
I get the same result as ramonjosegt. Not using the same version of phpmyadmin must be the case. What needs to be different?
I needed to install mysqli myself, maybe include that in your tutorial or did i miss something?
All is working perfectly, but I think you did a small typo:
"If you want to enter an additional user, you need to do so without the -c flag, like this:
sudo htpasswd /etc/phpmyadmin/.htpasswd additionaluser"
should be:
“… sudo htpasswd /usr/share/phpmyadmin/.htpasswd additionaluser”
Right?
I prepared auto configurator from bash for myself it is helpful code for moving data between severs:
filewww=`dirname "$(realpath $0)"`/"phpmyadmin"
checkfilephpmy=`dirname "$(realpath $0)"`/"phpmyadmin/README"
phpmywww="/usr/share/phpmyadmin"
wgetphpmyadmin="https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.tar.gz"
filedownloaded=`dirname "$(realpath $0)"`/"phpMyAdmin-latest-all-languages.tar.gz"
dirdownloaded=`dirname "$(realpath $0)"`/"phpMyAdmin-latest-all-languages"
echo "Check If Exits $checkfilephpmy"
if [[ ! -f "$checkfilephpmy" ]] ; then
echo "[no] ..."
echo "Checking if exists ${filedownloaded}:"
if [[ ! -f "$filedownloaded" ]] ; then
echo "[no], start downloads..."
wget "${wgetphpmyadmin}" && echo "[success]" || echo "[fail]"
else
echo "[yes]"
fi
takeFileInside=`dirname "$(realpath $0)"`/`tar --exclude="*/*" -tf "${filedownloaded}"`
echo "Check if need unpack tar.gz: $takeFileInside"
if [[ ! -d "$takeFileInside" ]] ; then
tar -xf "${filedownloaded}" && echo "[success]" || echo "[fail]"
else
echo "exists"
fi
echo "Moving $takeFileInside to $filewww"
mv "$takeFileInside" "$filewww"
else
echo "[exists]"
fi
if [[ -d "$filewww" ]] ; then
echo "Check if exists dir $phpmywww"
if [[ ! -d "$phpmywww" ]] ; then
echo "[no] ... create ln -s ..."
ln -s "$filewww" "$phpmywww" && echo "[success]" || echo "[fail]"
else
echo "[yes]"
fi
fi
checkfilephpconfig=`dirname "$(realpath $0)"`/"phpmyadmin/config.sample.inc.php"
checkfilephpconfig2=`dirname "$(realpath $0)"`/"phpmyadmin/config.inc.php"
echo "Check if exists config.inc.php"
#rm $checkfilephpconfig2
if [[ ! -f "$checkfilephpconfig2" ]] ; then
echo "[no] creating config .."
if [[ -f "$checkfilephpconfig" ]] ; then
echo "Setting tmp dir.."
if [[ -d "/mnt/tmp" ]] ; then
echo "to /mnt/tmp"
tmpdirpma="/mnt/tmp"
else
tmpdirpma=`dirname "$(realpath $0)"`/"tmp"
echo "to $tmpdirpma"
if [[ ! -d "$tmpdirpma" ]] ; then
echo "creating dir $tmpdirpma";
mkdir $tmpdirpma && echo "[success]" || echo "[fail]"
fi
fi
passwordToPMA="OWNPASSWORD"
echo "Coping config.sample.inc to config.sample.inc "
cp $checkfilephpconfig $checkfilephpconfig2 && echo "[success]" || echo "[fail]"
echo "Editing Config ..."
getpwdhashtag=`pwgen -s 32 1`
echo "\$cfg['blowfish_secret'] = '$getpwdhashtag';
\$cfg['Servers'][\$i]['controlhost'] = '';
\$cfg['Servers'][\$i]['controlport'] = '';
\$cfg['Servers'][\$i]['controluser'] = 'pma';
\$cfg['Servers'][\$i]['controlpass'] = '$passwordToPMA';
/* Storage database and tables */
\$cfg['Servers'][\$i]['pmadb'] = 'phpmyadmin';
\$cfg['Servers'][\$i]['bookmarktable'] = 'pma__bookmark';
\$cfg['Servers'][\$i]['relation'] = 'pma__relation';
\$cfg['Servers'][\$i]['table_info'] = 'pma__table_info';
\$cfg['Servers'][\$i]['table_coords'] = 'pma__table_coords';
\$cfg['Servers'][\$i]['pdf_pages'] = 'pma__pdf_pages';
\$cfg['Servers'][\$i]['column_info'] = 'pma__column_info';
\$cfg['Servers'][\$i]['history'] = 'pma__history';
\$cfg['Servers'][\$i]['table_uiprefs'] = 'pma__table_uiprefs';
\$cfg['Servers'][\$i]['tracking'] = 'pma__tracking';
\$cfg['Servers'][\$i]['userconfig'] = 'pma__userconfig';
\$cfg['Servers'][\$i]['recent'] = 'pma__recent';
\$cfg['Servers'][\$i]['favorite'] = 'pma__favorite';
\$cfg['Servers'][\$i]['users'] = 'pma__users';
\$cfg['Servers'][\$i]['usergroups'] = 'pma__usergroups';
\$cfg['Servers'][\$i]['navigationhiding'] = 'pma__navigationhiding';
\$cfg['Servers'][\$i]['savedsearches'] = 'pma__savedsearches';
\$cfg['Servers'][\$i]['central_columns'] = 'pma__central_columns';
\$cfg['Servers'][\$i]['designer_settings'] = 'pma__designer_settings';
\$cfg['Servers'][\$i]['export_templates'] = 'pma__export_templates';
\$cfg['UploadDir'] = '';
\$cfg['SaveDir'] = '';
\$cfg['TempDir'] = '$tmpdirpma';
" >> $checkfilephpconfig2 && echo "[success]" || echo "[fail]"
#sudo mariadb < /usr/share/phpmyadmin/sql/create_tables.sql
#echo "sudo mariadb >> GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'pma'@'localhost' IDENTIFIED BY '$passwordToPMA';"
else
echo "[no] exist config.sample.inc.php"
fi
else
echo "[exist]"
fi