If you're trying to connect to the MySQL server on X10, there's no way you have access to the root MySQL account. Use your own database account.
A failed connection should produce an error; what is it?
On X10, phpMyAdmin is already installed in cPanel. If you're trying to install your own copy, you don't need to.
If instead you're writing your own script and write "phpmyadmin" instead of "MySQL" (two entirely different things), the mysql extension is outdated and on its way to deprecation. Instead, use PDO, which has many useful improvements, such as prepared statements and support for the Traversable interface, so you can loop over results with foreach.