I created a Wordpress web site in Azure. Is there anyway to access the database that was set up along with it? (so I can back / or if I should want to Migrate in the future )
If you go to the website dashboard tab, you will see a link call "view connection string". If you click that you will see the connection string with database and server name, user name, and password , etc. You should be able to use those to log into your MySql database using tool such as http://dev.mysql.com/downloads/gui-tools/5.0.html
Related
I am trying to use Rest web API , to retrieve data.
When i am building and executing it using localserver, it is displaying the data.
But, when i publish it and use IIS to access it does not show any data. and shows this
"This XML file does not appear to have any style information associated with it. The document tree is shown below."
i am already using the same API for the functions of fileupload and they are working. Its just the matter of database, whenever i have to access database,it showing me the error above(This error means that no data is fetched).
Can you please help me with it?
Thanks in advance
The common reason behind the issue is iis user does not have enough permission to access the database.
To resolve the issue you can assign the database domain user which has enigh access to the database to the application pool by following below steps:
1)Open iis manager
2)select your application pool -> advanced setting.
3)Under Process Model, click on the “Identity” value and select “Custom account”.
enter your domain user name(DOMAIN\USERNAME) and password which user has to access to the database and click ok to apply the changes.
after applying changes select the application pool and click on the “Recycle”.
If you still face an issue you could refer below link for how to configure application pool user in SQL server.
https://forums.iis.net/post/2159167.aspx
I have a SQL Database on Azure to which I can successfully get connected from within an Excel file. I am using ADO and the connection string uses my own username and password. Since this file will be used by many users, how can I create a generic login and password so that I would not give out my own username and password in the code? The Excel file runs many VBA macros to communicate with the Azure SQL database.
I am using Excel 2010 (yeah, it is old, I have to) and this is my connection string:
mstrConnectionString = "Driver={SQL Server Native Client 11.0};" & _
"Server=tcp:<servername>.database.windows.net,1433;" & _
"Database=<databasename>;" & _
"Uid=<myusername>#<servername>;" & _
"Pwd={MyPassword};" & _
"Encrypt=yes;Connection Timeout=30;"
According your comment, I have an idea that you can create a new login/user for you Azure SQL database.
Then you use this user and password as public account to get or writer data from your Azure SQL database within Excel.
Here's the example T-SQL statement, this code is create a new login and a user in your Azure SQL database. You can run this query in SSMS:
--running in master db
USE [master]
GO
CREATE LOGIN [sagarreadonly] WITH PASSWORD='password'
GO
-- running in Azure SQL DB
USE [DataEncryptDemo]
GO
CREATE USER [sagarreadonly] FOR LOGIN [sagarreadonly] WITH DEFAULT_SCHEMA = Marketing;
GO
EXEC sp_addrolemember 'db_owner', 'sagarreadonly';
GO
The new user is created as 'db_owner' to the specified database.
For more details about database roles, please see Database-Level Roles.
About login and user:
A login is used for user authentication
A database user account is used for database access and permissions
validation.
Logins are associated to users by the security identifier (SID). A login is required for access to the SQL Server server. The process of verifying that a particular login is valid is called "authentication". This login must be associated to a SQL Server database user. You use the user account to control activities performed in the database. If no user account exists in a database for a specific login, the user that is using that login cannot access the database even though the user may be able to connect to SQL Server.
A Login is an identity used to connect to a SQL Server instance. A User allows you to log into a SQL Server database and is mapped to a Login. So you will need to first create a Login, before you can create a User in SQL Server.
Hope this helps.
You can create a "Database login" dialog box to prompt a user for database connection information by using text boxes, buttons, or other dialog box controls. Typically, when you type text in a text box, the text appears as you type. However, you can use a property of the Microsoft Visual Basic for Applications (VBA) Edition User Form to create the effect of a hidden or "masked" text box for creating a password dialog box, where you do not want the text that is typed in a text box to be "visible". Here you will find how to do that.
The information the user types on the "Database login" can be used to build the connection string you posted above.
To create a custom dialog in Excel please follow this instructions.
I've just accidentally deleted a Web application from Central Administration in my SharePoint 2007 server farm using "Delete Web application". I've chose both "No" to "Delete content databases" and "Delete IIS Website". So, I've still had the contents of the virtual directory and content database.
I've tried a few things here but it is not working.
first, i tried to restore the content database of "Central Administration website" to earlier date, but the settings are not reverted.
Then I tried to create a new web application under same port number "e.g 8000" and then create an empty site collection on it. Then I tried to add the content database of the original website. it shows the content db contains '0' site collection.
Is there any suggestion what i should do?
First, backup the original content database to a safe location to ensure you have a good copy of it somewhere. Here is the basic procedure after which I provide the detailed steps.
BASIC PROCEDURE
Backup the existing content database for safety
Delete the current site, keeping the content database
Recreate the site with a new content database
Detach the new content database
Attach the old content database
DETAILED STEPS
Delete everything for the site except the original content database. This includes the IIS Site and any new content databases you created. You should have a fresh slate now to work with.
Recreate the site with the exact same settings but use a unique name for the new content database. For example, use the same URL, Port, etc. but if your original content database was called myspcontentdb use the name myspcontentdb-new for the new content database.
Once the new site is created, verify you can access it in a browser.
Open SharePoint Central Administration
On the top navigation bar, click Application Management.
On the Application Management page, in the SharePoint Web Application Management section, click Content databases.
On the Manage Content Databases page, click the NEW content database (myspcontentdb-new).
On the Manage Content Database Settings page, in the Remove Content Database section, select the Remove content database check box.
Click OK to indicate that you want to proceed with the removal.
Click OK again.
On the Manage Content Databases page, click Add a content database.
Ensure the correct Web Application is selected.
In the Database Name and Authentication section, in the Database Server box, type the name of the database server.
In the Database Name box, type a name for the ORIGINAL content database (myspcontentdb).
Select the appropriate database authentication
Complete the rest of the form then click OK.
Verify the site works with the new content database.
Reference: http://technet.microsoft.com/en-us/library/cc262440(v=office.12).aspx
I have a new Azure account. I am able to log into the 'manage' page as admin, but I forgot the password to one of my databases. I would like to reset the password on that one DB. How do I do that? Microsoft doesn't seem to have a KB on that - at least not one I could find. Thx.
If you're referring to the administrative password for a specific Windows Azure SQL Database server, you can do this from the new portal. Select the Database choice on the left, then select Servers:
Then, after selecting the server of choice, you'll see the option on the right for resetting admin password:
Using the new azure portal:
https://portal.azure.com
Click browse (to view all resources)
Select SQL databases
Choose a database that's in the server you want to change creds for.
Select the server name url for that selected database. This should open up the server configuration blade.
Reset password is the second button from left.
Another variation on new Azure portal (bypassing the database), #1 go to SQL servers directly; #2 click on the DB Server you want to update the password for, #3 click the pencil, #4 update the password, confirm and save.
To reset the administrator password for a SQL Database server, use the following steps:
Go to the Windows Azure Management Portal at http://manage.windowsazure.com and click SQL Databases in the left-hand navigation pane.
Click the Servers tab at the top of the SQL Databases workspace. This will launch the Server List View.
In the Server List View, click the name of the server to update. This will launch the Server Dashboard.
On the Server Dashboard, click Reset Administrator Password under quick glance tasks on the right-hand side of the workspace.
On the Reset Password dialogue, specify a new password and then confirm the new password.
To complete the operation, click the Check mark button at bottom right. You will be returned to the Server Dashboard for the server.
If you reset the SQL Database server password during a time when there are active connections to databases on the server, you may want to use the KILL statement to terminate user sessions. This will force client connections to refresh their sessions with the database and the host server. For more information, see KILL (Windows Azure SQL Database).
With the current iteration of the interface, the process is similar to what is described above with an additional step:
Get to the Overview as described above.
New: Click on the server name (I just had to stumble into it. Horrible UI design.)
Now there is an option to reset the password.
You can use the following command with the Azure CLI 2.0 to change / reset the password for Azure SQL Database:
az sql server update -n {database server name}
-g {resource group name}
-p {password}
Source: https://buildazure.com/2017/05/18/azure-cli-2-0-reset-azure-sql-database-password/
You can actually reset your admin password to your SQL database using the old/previous Silverlight portal.
Log into https://windows.azure.com/ or into the current one and select "Previous portal" from your login
In the previous portal click the "Database" menu item on the bottom left
Select the database from the subscription
click the "reset password"
Update for new portal:
Go to the SQL server that's hosting your SQL DB and click on "Reset password".
If someone had forgotten his password for DB, First of all, look at the connection string(appsettings.json).
You will find it there.
I have an issue with SharePoint search.
The situation
The server is installed with
SharePoint on a farm with 2 servers.
A new app pool is created and that app pool is using a domain account called moss_service.
moss_service is set to be in the administrator group in both server.
moss_service is also set to be the db_creator in the content database.
When I checked it initially, the search's default content access account is using another different account, I changed that to be using moss_service account.
I didn't do IIS reset because this is a production server, they dont want frequent iis reset.
Strangely, checking the services.msc under "office sharepoint server search" the account is still using an old one. (and apparently it's only running on 1 server, the other server is not running) I then change that to the following:
domain\moss_service with the password.
and then I rerun the crawl.
How do I diagnose the issue
Basically everytime I change something I restart the crawl and then check the event viewer. Multiple things come out but the following is the major ones:
The start address cannot be
crawled. The password for the content
access account cannot be decrypted
because it was stored with different
credentials. Re-type the password for
the account used to crawl this
content. (0x80042406)
Performance monitoring cannot be
initialized for the gatherer object,
because the counters are not loaded or
the shared memory object cannot be
opened. This only affects availability
of the perfmon counters. Restart the
computer.
Access is denied. Check that the
Default Content Access Account has
access to this content, or add a crawl
rule to crawl this content.
(0x80041205)
Crawl Logs Result
The crawl log is showing this:
The password for the content access account cannot be decrypted because it was stored with different credentials. Re-type the password for the account used to crawl this content.
I tried changing it again at service.mstsc and the rerun the full crawl again but then it doesn't work. I have tried entering it using the following way:
moss_service#domain.local
and
domain\moss_service
My Questions are:
How do I fix this?
Is this the right way to setup the
search?
Does the search account has to be
using a different domain account?
Seemed like one fix complicates the
other, how do I set this right?
Is it worth it to upgrade to sp2?
Google this you will get answer " Access is denied. Check that the Default Content Access Account has access to this content, or add a crawl rule to crawl this content. "
Alex, I think you need to completely reconfigure the search services. Keep in mind that the search crawler should be an account with least privileges (not your application service account!). Also, the indexer only runs on one server and whether the search crawler runs on one or more machines is another configuration issue. Also, some settings changes (like changing the crawled File Types) even require the search engine to be restarted.
The start address cannot be crawled. The password for the content
access account cannot be decrypted because it was stored with
different credentials. Re-type the password for the account used to
crawl this content.
For this error,
Open the Sharepoint administration
Click on "Application Management"
Click on "Manage service applications"
Click on "Search Service Application"
Click on the current value for "Default content access account" and re-enter the user's password, or update to another admin user.