Problems with attach database - sql-server-2008

When I have attach the database, SQL show this error: user publicdoes not have permission to run dbcc checkprimaryfile.
How to solve this issue?
Thank you.

Related

MySQL Workbench has encountered a problem. Access to the path 'F:\System Volume information' is denied. Windows 10

I just installed MySQL workbench (version 8.0.30) through the MySQL installer but I'm getting the following error when opening the application. I tried running it on admin but it still gives the same message
Detailed error message below
MySQL Workbench has encountered a problem. Access to the path 'F:\System Volume information' is denied
We are sorry for the inconvenience but an unexpected exception has
been raised by one of the MySQL Workbench modules. In order to fix
this issue we would kindly ask you to file a bug report. You can do
that by pressing the [Report Bug] button below.
Please make sure to include a detailed description of your actions
that lead to this problem.
Thanks a lot for taking the time to help us improve MySQL Workbench!
The MySQL Workbench Team

How to connect Power BI Desktop to MYSQL Database on my local Machine?

I tried to connect from Power BI Desktop to MySQL to get data from MySQL database into Power BI but got an error message and I do not know how to fix this. Can someone please help me out?
This is the error message I keep on getting.
The error message is:
Details: "MySQL: Host 'DELL-PC' is not allowed to connect to this MySQL server"
I have also tried editing my settings on Power BI by going to file|options & settings|data source settings but still could not fix it.
Please how to fix this?
That's a database permission error, have a look at this answer, you may need to create a new user (or edit the current one) with proper permissions

PhPmyadmin MySQL Error #1018 Xampp

I have Installed Xampp and configured MySQL and PhPmyadmin through it. BUt, when Itry creating a new User account It shows a MySQL error#1018 which says,
Error: 1018 SQLSTATE: HY000 (ER_CANT_READ_DIR)
Message: Can't read dir of '%s' (errno: %d - %s)
this Message takes me to SQL Query in the PHPmyadmin server which shows this,
SHOW PLUGINS SONAME LIKE '%_password_check%'
I am stuck with this. I have tried different things but In vain. I will appreciate help regarding this Issue. Thanks in advance.
If you installed XAMPP in the default folder C:\xampp go and manually create the folder C:\xampp\mysql\lib\plugin in Explorer. This should fix the user creation issue.
This error is showing that you can not read in this directory. Please check this on mysql site
Normally it happens when you do not have rights on the folder, easiest is that you should give full control to "Everyone" group. Just right click on folder and in security tab "edit" and select "Everyone group" and in the lower window give check on Full control.

How to allow remote access to phpmyadmin

I am running a Linux server with Apache2 and PHPMyAdmin installed. I am able to login remotely with my root account but not the account that was created for someone else. The new user has his host settings to "%" like it should be. However when I try to login with his account I get the error...
#1045 Cannot log in to the MySQL server
Might anyone be able to help me? I know there was supposed to be something like added to a file to allow permission but I can't seem to get it to work.
RESOLVED: I figured out the way to fix it. I had to go into SSH and use the command "mysql_secure_installation" and answer the questions :) Thanks everyone! I hope this helps others who have the same problem.

phpmyadmin privileges only working on some databases

When I use PHPMyAdmin to edit or delete a record I am getting an error saying "You don't have permission to access /phpmyadmin/sql.php on this server." But this only happens in some databases. I am the only user according to PHPMyAdmin and through the command prompt on my Linux box.
First off I've changed the PHPMyAdmin access folder because my access logs were showing others trying to get in. Logs don't show any successful attempts.
It was working until today...Now it throws the error. I can still add and drop tables completely, just not edit a record, in two of the five databases. Also I've checked into the user privileges and there doesn't seem to be an issue there.
Anyone have an idea?
EDIT: I have narrowed this down to a conflict between mod_security and PHPMyAdmin, now off to Google to find the solution,
Thanks
What I did was I opened modsecurity.d/modsecurity_crs_47_common_exceptions.conf and added the following to the bottom:
SecRuleEngine Off
And viola it fixed all the issues