How to add user in phpmyadmin - mysql

I want to know how to add user in phpmyadmin , I have done some research but didnot find the proper answer. I am unable to find the privilege section in phpmyadmin so that i can add a username and password . I am working on hosting and i cant see the privilege section in my phpmyadmin main's page.
Sorry for the inconvenience my english is weak

phpMyAdmin does not handle user management, rather it passes the username and password on to MySQL. create mysql User.
and If you mean, users controlling their own database, go here.

From https://wiki.phpmyadmin.net/pma/user_management :
To create a new user, click the Add a new user link near the bottom of the Privileges page (you must be a "superuser", e.g., user "root").
(emphasis mine)

Select the database on the left, then:

phpMyAdmin does handle user management, The fourth tab in the main view, "User accounts". In there, you have the section, "New", there you can add new users.

I was successful in adding user using the "User accounts" tab in the main view (as posted by Kadaiser). All privileges are global. It does not provide a way to grant privileges on any specific database. Also, one must specify the host name of the user for database connection to work (i.e. so and so#% presented connection problems).

I can never get the hang of that phpmyadmin interface.
One easy way to get around it is to click on the 'mysql' database, then click on the link SQL to write your own query:
GRANT ALL PRIVILEGES ON dbname.* TO your-new-user#host-ip IDENTIFIED BY 'his-strong-password';
When the query has run,
FLUSH PRIVILEGES;
and run that query as well.
Both your user has been created and the privileges have been set.
Instead of using the ip address, you can also add a host name if that suits you better.

Related

Change WordPress User Password From phpMyAdmin in CPanel

I can't log into the WP Dashboard because the password I always use is incorrect. I know I can change the user info from hosting account. I logged into cPanel and went to phpMyAdmin > wp_users and proceeded to change user_pass to the appropriate password. I'm back at square 1 because I cannot log in.
you need select md5 encryption, in the function table you select md5, because wordpress use this encryption method for the password.
Image http://tinyurl.com/q3ec792
Please follow the instruction:
Through phpMyAdmin
This article is for those who have phpMyAdmin access to their database.
Note: use phpMyAdmin at your own risk. If you doubt your ability to use it, seek further advice. WordPress is not responsible for loss of data.
Begin by logging into phpMyAdmin and clicking databases.
A list of databases will appear. Click your WordPress database.
All the tables in your database will appear. If not, click Structure.
Look for wp_users in the Table column.
Click on the icon for browse.
Locate your Username under user_login
Click edit (may look like a pencil icon in some versions of
phpMyAdmin)
Your user_id will be shown, click on Edit
Next to the user_pass is a long list of numbers and letters.
Select and delete these and type in your new password.
Type in the password you want to use. Just type it in normally, but
remember, it is case-sensitive.
In this example, the new password will be 'rabbitseatcarrots'
Once you have done that, click the dropdown menu indicated, and
select MD5 from the menu.
Check that your password is actually correct, and that MD5 is in the
box.
Click the 'Go' button to the bottom right.
Test the new password on the login screen. If it doesn't work, check
that you've followed these instructions exactly.

Creating a Database Diagram in SSMS - Auth Failed

I am trying to generate a database diagram from an existing SQLExpress database that I own but I am getting this error:
Database diagram support objects cannot be installed because this database does not have a valid owner. To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects.
I am the owner according to the properties:
I did try this but was not in the correct syntax
ALTER AUTHORIZATION ON DATABASE::GuitaristDB TO PDC1\tcastonzo;
This executed but probably not correct
ALTER AUTHORIZATION ON DATABASE::GuitaristDB TO tcastonzo;
You need to ensure that the user PDC1\tcastonzo (which is a domain or computer account) has a login to the SQL Server.
The user tcastonzo looks to be a SQL account, which is separate from the PDC1\tcastonzo account.
What credentials do you currently use to connect to the SQL Server?
Try changing the owner of the database to either SA or NT AUTHORITY\SYSTEM.
Right click the database you want to change AUTHORIZATION and click
Properties. A window/dialog will open.
At the left side of the dialog click Files
From the Right side change the Owner as your own
Then logged-in with the changed user. It will solve your problem.
Try and enjoy

Allow users to drop owned prefix database

Using phpMyAdmin I created a user with all permissions granted on prefixed (eg. user_db) databases. Everything works as I would want it to, except for one thing. How do I allow users to drop the prefixed databases they have permissions for? I can't seem to find where to do that, IF that's possible at all.
EDIT:
Note that the users are permitted to drop the database, I just can't seem to find where they should do that in phpMyAdmin as for example the root user would by selecting a database from the list and then clicking 'drop'.
EDIT 2:
This is how adding a user looks for me:
When you select the database, on the right side panel at the top, there is a menu called "Operations", there you can find the "Drop the database (DROP)" option.
You will need to edit your config.inc.php file of your phpMyAdmin with:
$cfg['AllowUserDropDatabase'] = TRUE;
This will show the link on the operation menu like on the above image.
Keep in mind there is a lot other options you can manually add as well that can be seen at http://wiki.phpmyadmin.net/pma/Config#AllowUserDropDatabase

OpenERP7, new user with full rights unable to create new partners

With the admin user I can do everything, add, delete, modify, etc. As it should be.
Then using this user added a new one, with full access to sales and accounting options as some other ones needed for sales operations. Then tried to add a new supplier and it throws a warning:
Access Denied
The requested operation cannot be completed due to security restrictions.
Please contact your system administrator.
(Document type: Pricelist, Operation: read)
Tested all the possible combinations on user rights and ended up giving full access to all options. Nevertheless I'm unable to create any new contact/customer/supplier/etc with this user. I'm running out of options, I don't know what else to test or where to look.
EDIT
Got an answer on the brand new OpenERP discussion site recommending to uncheck the Portal user rights for the user. Uncheking it partially worked. The warning still appears but when I click OK, fill the supplier and save, the new supplier is added without errors. Any recommendation?
I really think that's not a bug.
it's a conflict of "Rights" (in Access rules and ACL).
A "Portal or Anonymous" user, is an external user (from the company) and have only some limited rights for accessing some public informations or it can be an exteranl partner which can access his private documents and informations related to his relation with this company.
A normal OpenERP user (a company employee with some or all rights "let's call it an internal user") can't be and should not be in the same time a "Portal or Anonymous" user (with very limited rights), and vice-versa.
Just uncheck these two options for an internal OpenERP user.
Is a reported bug that seems to be related to multi-company option selection and user rights.
Go to multi company Access Denied Document type: Partner, Operation: read where the bug was reported and is followed up by other users. Hope a patch is created soon.
I agree, I don't think that's a bug.
I got that error with a user when I created an employee linked to this user.
You have to be at least an employee from the society to add a new client.
Link to create a new employee :
http://yoururl:PORT/?ts=1369948181483#view_type=kanban&model=hr.employee&menu_id=273&action=328
I got the error when I granted Portal rights to a contact/customer, then when a Quotation is sent (testing), opeing the Quotation yields the error message:
Access Denied
The requested operation cannot be completed due to security
restrictions. Please contact your system administrator.
(Document type: Partner, Operation: read)
However, clicking OK, can get past it and proceed to pay. This is a major ongoing sort of issue with OPENERP. It should be fixed by now...
I just faced a similar problem, may solution was to add a record rule for the Administration / Settings group, here is how:
1- Go to Settings->Groups and select Administration / Settings. (Make sure this group is assigned to de new user)
2- Click the Edit button and go to the Rules tab. (It should be empty)
3- Click the Add button, this action open a modal window, click the Create button on it.
4- Give the new rule a semantic name - e.g. Partner: administration settings: see all - and make sure all the access rights are selected.
5- In the object drop down type res.partner, it will allow you to select the object named Partner referenced in the error.
6- Click the Add button in the Groups section and select the Administration / Settings group.
7- Finally click the Save & Close button and save the group changes by clicking the Save button.
Hope this is helpful for beginners in OpenERP. Actually I already have used this solution patter more than once for similar error related to permissions a given user was expected to have.
Its a rules issue. Deactivate the rule Product Template . Rules overrule access writes setup under the user setup. So it looks like users have identical access but these rules bypass your customisations.
i think you should active developer mode, and go to setting/user -> select the user have this error. Then click edit and uncheck public in "Other Extra Rights" section. After that, click save.

MS Access Database update

I have an application which uses ms access database with password encryption. The login information is stored within the database (username and password). I double clicked the database file and keyed in the password to see the table list. In a message bar there's a massage stating that the "This database has been opened read-only". Then I tried to set the password into a new value lets say "password1". However, when I re run my application and tried to login using the new password but it fails (only works with the old password).
Does this mean the database here is not used by the application? Or there's a copy of the database somewhere and being referred to ?
I think there may be a password encryption, In this case you can not just modify the password in the database to login. Check your application.
The various things you say are incompatible with each other. Saving a database with encryption does not require a user name, only a password. If you get the password wrong or do not supply it, the database does not open read-only, it does not open at all. If you are using user level security, the user name and password are not stored "within the database", they are stored in an .mdw file.
Try holding the shift key down while you open the database, you must keep it held until the database if fully open, that is, hold the shift key, open the database, type in the password, continue to hold the shift key.
If you are not asked for a password when you hold the shift key, but the file is still read only, check:
Right-click the file and check the properties
Check the folder permissions
If there is a left over .ldb or .laccdb lock file